@shipengine/js-api 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/connections/api.d.ts +4 -4
- package/index.js +6 -6
- package/index.mjs +6 -6
- package/package.json +1 -1
package/connections/api.d.ts
CHANGED
|
@@ -26,12 +26,12 @@ export declare class ConnectionsAPI {
|
|
|
26
26
|
getCarrierConnectionsServicesList: (carrierCode: string) => Promise<import("axios").AxiosResponse<CarrierServicesListResponse, any>>;
|
|
27
27
|
/**
|
|
28
28
|
* The `getCarrierSettings` method retrieves the settings for a given carrier,
|
|
29
|
-
* identified by the `carrierName` and `
|
|
29
|
+
* identified by the `carrierName` and `carrierId`.
|
|
30
30
|
*/
|
|
31
|
-
getCarrierSettings: <T extends ConnectionsCarrierName>(carrierName: T,
|
|
31
|
+
getCarrierSettings: <T extends ConnectionsCarrierName>(carrierName: T, carrierId: string) => Promise<import("axios").AxiosResponse<ConnectionsCarrierSettingsResponse<T>, any>>;
|
|
32
32
|
/**
|
|
33
33
|
* The `updateCarrierSettings` method updates the settings for a given carrier,
|
|
34
|
-
* identified by the `carrierName` and `
|
|
34
|
+
* identified by the `carrierName` and `carrierId`.
|
|
35
35
|
*/
|
|
36
|
-
updateCarrierSettings: <T extends ConnectionsCarrierName>(carrierName: T,
|
|
36
|
+
updateCarrierSettings: <T extends ConnectionsCarrierName>(carrierName: T, carrierId: string, formData: ConnectionsCarrierSettingsData<T>) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
37
37
|
}
|
package/index.js
CHANGED
|
@@ -1225,20 +1225,20 @@ class ConnectionsAPI {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
/**
|
|
1227
1227
|
* The `getCarrierSettings` method retrieves the settings for a given carrier,
|
|
1228
|
-
* identified by the `carrierName` and `
|
|
1228
|
+
* identified by the `carrierName` and `carrierId`.
|
|
1229
1229
|
*/
|
|
1230
|
-
this.getCarrierSettings = (carrierName,
|
|
1230
|
+
this.getCarrierSettings = (carrierName, carrierId) => {
|
|
1231
1231
|
return this.client.get(
|
|
1232
|
-
`/v1/connections/carriers/${carrierName}/${
|
|
1232
|
+
`/v1/connections/carriers/${carrierName}/${carrierId}/settings`
|
|
1233
1233
|
);
|
|
1234
1234
|
};
|
|
1235
1235
|
/**
|
|
1236
1236
|
* The `updateCarrierSettings` method updates the settings for a given carrier,
|
|
1237
|
-
* identified by the `carrierName` and `
|
|
1237
|
+
* identified by the `carrierName` and `carrierId`.
|
|
1238
1238
|
*/
|
|
1239
|
-
this.updateCarrierSettings = (carrierName,
|
|
1239
|
+
this.updateCarrierSettings = (carrierName, carrierId, formData) => {
|
|
1240
1240
|
return this.client.put(
|
|
1241
|
-
`/v1/connections/carriers/${carrierName}/${
|
|
1241
|
+
`/v1/connections/carriers/${carrierName}/${carrierId}/settings`,
|
|
1242
1242
|
formData
|
|
1243
1243
|
);
|
|
1244
1244
|
};
|
package/index.mjs
CHANGED
|
@@ -1221,20 +1221,20 @@ class ConnectionsAPI {
|
|
|
1221
1221
|
};
|
|
1222
1222
|
/**
|
|
1223
1223
|
* The `getCarrierSettings` method retrieves the settings for a given carrier,
|
|
1224
|
-
* identified by the `carrierName` and `
|
|
1224
|
+
* identified by the `carrierName` and `carrierId`.
|
|
1225
1225
|
*/
|
|
1226
|
-
this.getCarrierSettings = (carrierName,
|
|
1226
|
+
this.getCarrierSettings = (carrierName, carrierId) => {
|
|
1227
1227
|
return this.client.get(
|
|
1228
|
-
`/v1/connections/carriers/${carrierName}/${
|
|
1228
|
+
`/v1/connections/carriers/${carrierName}/${carrierId}/settings`
|
|
1229
1229
|
);
|
|
1230
1230
|
};
|
|
1231
1231
|
/**
|
|
1232
1232
|
* The `updateCarrierSettings` method updates the settings for a given carrier,
|
|
1233
|
-
* identified by the `carrierName` and `
|
|
1233
|
+
* identified by the `carrierName` and `carrierId`.
|
|
1234
1234
|
*/
|
|
1235
|
-
this.updateCarrierSettings = (carrierName,
|
|
1235
|
+
this.updateCarrierSettings = (carrierName, carrierId, formData) => {
|
|
1236
1236
|
return this.client.put(
|
|
1237
|
-
`/v1/connections/carriers/${carrierName}/${
|
|
1237
|
+
`/v1/connections/carriers/${carrierName}/${carrierId}/settings`,
|
|
1238
1238
|
formData
|
|
1239
1239
|
);
|
|
1240
1240
|
};
|