@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.
@@ -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 `carrierCode`.
29
+ * identified by the `carrierName` and `carrierId`.
30
30
  */
31
- getCarrierSettings: <T extends ConnectionsCarrierName>(carrierName: T, carrierCode: string) => Promise<import("axios").AxiosResponse<ConnectionsCarrierSettingsResponse<T>, any>>;
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 `carrierCode`.
34
+ * identified by the `carrierName` and `carrierId`.
35
35
  */
36
- updateCarrierSettings: <T extends ConnectionsCarrierName>(carrierName: T, carrierCode: string, formData: ConnectionsCarrierSettingsData<T>) => Promise<import("axios").AxiosResponse<void, any>>;
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 `carrierCode`.
1228
+ * identified by the `carrierName` and `carrierId`.
1229
1229
  */
1230
- this.getCarrierSettings = (carrierName, carrierCode) => {
1230
+ this.getCarrierSettings = (carrierName, carrierId) => {
1231
1231
  return this.client.get(
1232
- `/v1/connections/carriers/${carrierName}/${carrierCode}/settings`
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 `carrierCode`.
1237
+ * identified by the `carrierName` and `carrierId`.
1238
1238
  */
1239
- this.updateCarrierSettings = (carrierName, carrierCode, formData) => {
1239
+ this.updateCarrierSettings = (carrierName, carrierId, formData) => {
1240
1240
  return this.client.put(
1241
- `/v1/connections/carriers/${carrierName}/${carrierCode}/settings`,
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 `carrierCode`.
1224
+ * identified by the `carrierName` and `carrierId`.
1225
1225
  */
1226
- this.getCarrierSettings = (carrierName, carrierCode) => {
1226
+ this.getCarrierSettings = (carrierName, carrierId) => {
1227
1227
  return this.client.get(
1228
- `/v1/connections/carriers/${carrierName}/${carrierCode}/settings`
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 `carrierCode`.
1233
+ * identified by the `carrierName` and `carrierId`.
1234
1234
  */
1235
- this.updateCarrierSettings = (carrierName, carrierCode, formData) => {
1235
+ this.updateCarrierSettings = (carrierName, carrierId, formData) => {
1236
1236
  return this.client.put(
1237
- `/v1/connections/carriers/${carrierName}/${carrierCode}/settings`,
1237
+ `/v1/connections/carriers/${carrierName}/${carrierId}/settings`,
1238
1238
  formData
1239
1239
  );
1240
1240
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {