Gathering detailed insights and metrics for fulfillmenttools-swagger-codegen-sdk-typescript
Gathering detailed insights and metrics for fulfillmenttools-swagger-codegen-sdk-typescript
Gathering detailed insights and metrics for fulfillmenttools-swagger-codegen-sdk-typescript
Gathering detailed insights and metrics for fulfillmenttools-swagger-codegen-sdk-typescript
Typescript-SDK generated with swagger-codegen from OpenAPI-Specification https://raw.githubusercontent.com/fulfillmenttools/fulfillmenttools-api-reference/master/api.swagger.yaml to work with the fulfillmenttools-API
npm install fulfillmenttools-swagger-codegen-sdk-typescript
Typescript
Module System
Node Version
NPM Version
67.1
Supply Chain
98.3
Quality
78.3
Maintenance
100
Vulnerability
100
License
TypeScript (99.95%)
Shell (0.05%)
Total Downloads
9,222
Last Day
4
Last Week
205
Last Month
1,740
Last Year
9,222
18 Commits
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
3.0.6
Package Id
fulfillmenttools-swagger-codegen-sdk-typescript@3.0.6
Unpacked Size
12.34 MB
Size
809.31 kB
File Count
23
NPM Version
10.8.1
Node Version
20.15.0
Publised On
26 Jul 2024
Cumulative downloads
Total Downloads
Last day
-94.4%
4
Compared to previous day
Last week
-53.5%
205
Compared to previous week
Last month
-24.3%
1,740
Compared to previous month
Last year
0%
9,222
Compared to previous year
1
2
This SDK was created with swagger-codegen from https://raw.githubusercontent.com/fulfillmenttools/fulfillmenttools-api-reference/master/api.swagger.yaml with openapi version 3.0.1
Fixed type errors
1import {
2 CoreConfigurationApi,
3 CoreCustomServicesApi,
4 CoreDocumentSetsApi,
5 CoreEventingApi,
6 CoreExpiriesApi,
7 CoreFacilitiesApi,
8 CoreListingsApi,
9 CoreNotificationCenterApi,
10 CoreProcessesApi,
11 CoreProcessesExternalActionsApi,
12 CoreProcessesExternalActionsLogsApi,
13 CoreRemoteConfigurationApi,
14 CoreTagsApi,
15 CoreUserManagementApi,
16 CoreValidationsApi,
17 DOMSCancelationReasonsApi,
18 DOMSCheckoutOptionsApi,
19 DOMSOrdersApi,
20 DOMSRoutingPlansApi,
21 FulfillmentOperationsCustomServicesApi,
22 FulfillmentOperationsHandoverApi,
23 FulfillmentOperationsOperativeProcessApi,
24 FulfillmentOperationsPackingApi,
25 FulfillmentOperationsRestowApi,
26 FulfillmentOperationsReturnsApi,
27 FulfillmentOperationsShipmentsApi,
28 InfrastructureArtifactsApi,
29 InfrastructureFeaturesApi,
30 InfrastructureGraphQLApi,
31 InfrastructureHealthApi,
32 InfrastructureOIDCConfigurationApi,
33 InventoryManagementChannelAvailabilityApi,
34 InventoryManagementInboundApi,
35 InventoryManagementStocksApi,
36 LastMileIntegrationCarriersApi
37} from "fulfillmenttools-swagger-codegen-sdk-typescript";
38
39const fftAuthUrl = "https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=";
40const fftApiUser: string = process.env.FFT_API_USER;
41const fftApiKey: string = process.env.FFT_API_KEY;
42const fftApiPwd: string = process.env.FFT_API_PWD;
43const fftApiUrl: string = process.env.FFT_API_URL;
44
45const getFetcher = (bearerToken: string) => {
46 return (url: string): Promise<Response> => fetch(url, {
47 cache: "no-store",
48 headers: {
49 Authorization: `Bearer ${ bearerToken }`,
50 "Cache-Control": "no-cache",
51 }
52 });
53};
54
55const getFftAuthInfo = async () => {
56 const authResponse = await fetch(fftAuthUrl + encodeURIComponent(fftApiKey), {
57 method: "POST",
58 body: JSON.stringify({
59 email: fftApiUser + "@" + fftProjectId + ".com",
60 password: fftApiPwd,
61 returnSecureToken: true,
62 }),
63 headers: {
64 "Content-Type": "application/json",
65 "Cache-Control": "no-cache",
66 }
67 });
68
69 return await authResponse.json();
70};
71
72const authInfo = await getFftAuthInfo();
73const f = getFetcher(authInfo.idToken);
74
75// Examples to instantiate different APIs
76new CoreConfigurationApi({}, fftApiUrl, f);
77new CoreCustomServicesApi({}, fftApiUrl, f);
78new CoreDocumentSetsApi({}, fftApiUrl, f);
79new CoreEventingApi({}, fftApiUrl, f);
80new CoreExpiriesApi({}, fftApiUrl, f);
81new CoreFacilitiesApi({}, fftApiUrl, f);
82new CoreListingsApi({}, fftApiUrl, f);
83new CoreNotificationCenterApi({}, fftApiUrl, f);
84new CoreProcessesApi({}, fftApiUrl, f);
85new CoreProcessesExternalActionsApi({}, fftApiUrl, f);
86new CoreProcessesExternalActionsLogsApi({}, fftApiUrl, f);
87new CoreRemoteConfigurationApi({}, fftApiUrl, f);
88new CoreTagsApi({}, fftApiUrl, f);
89new CoreUserManagementApi({}, fftApiUrl, f);
90new CoreValidationsApi({}, fftApiUrl, f);
91new DOMSCancelationReasonsApi({}, fftApiUrl, f);
92new DOMSCheckoutOptionsApi({}, fftApiUrl, f);
93new DOMSOrdersApi({}, fftApiUrl, f);
94new DOMSRoutingPlansApi({}, fftApiUrl, f);
95new FulfillmentOperationsCustomServicesApi({}, fftApiUrl, f);
96new FulfillmentOperationsHandoverApi({}, fftApiUrl, f);
97new FulfillmentOperationsOperativeProcessApi({}, fftApiUrl, f);
98new FulfillmentOperationsPackingApi({}, fftApiUrl, f);
99new FulfillmentOperationsPickingApi({}, fftApiUrl, f);
100new FulfillmentOperationsRestowApi({}, fftApiUrl, f);
101new FulfillmentOperationsReturnsApi({}, fftApiUrl, f);
102new FulfillmentOperationsShipmentsApi({}, fftApiUrl, f);
103new InfrastructureArtifactsApi({}, fftApiUrl, f);
104new InfrastructureFeaturesApi({}, fftApiUrl, f);
105new InfrastructureGraphQLApi({}, fftApiUrl, f);
106new InfrastructureHealthApi({}, fftApiUrl, f);
107new InfrastructureOIDCConfigurationApi({}, fftApiUrl, f);
108new InventoryManagementChannelAvailabilityApi({}, fftApiUrl, f);
109new InventoryManagementInboundApi({}, fftApiUrl, f);
110new InventoryManagementStocksApi({}, fftApiUrl, f);
111new LastMileIntegrationCarriersApi({}, fftApiUrl, f);
No vulnerabilities found.
No security vulnerabilities found.