@arrowsphere/api-client 3.187.0-rc.fdi.2 → 3.188.0-rc-bdj-2

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.
@@ -146,9 +146,7 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
146
146
  throw new exception_1.NotFoundException(`Resource not found on URL ${this.getUrl()}`, response.data.error, statusCode);
147
147
  }
148
148
  if (statusCode >= 400 && statusCode <= 599) {
149
- throw new exception_1.PublicApiClientException(response.data.messages, response.data.error, statusCode, {
150
- origin: `Error: status code: ${statusCode}. URL: ${this.getUrl()}`,
151
- });
149
+ throw new exception_1.PublicApiClientException(`Error: status code: ${statusCode}. URL: ${this.getUrl()}`, response.data.error, statusCode);
152
150
  }
153
151
  return response.data;
154
152
  }
@@ -106,7 +106,6 @@ export declare type APIResponseCustomerMigration = {
106
106
  export interface APIResponseError {
107
107
  status: number;
108
108
  error: string;
109
- messages?: string;
110
109
  }
111
110
  export declare type PatchCustomerContactPayload = {
112
111
  [Property in keyof PostCustomerContactPayload]?: PostCustomerContactPayload[Property];
@@ -1,6 +1,6 @@
1
1
  export declare class PublicApiClientException extends Error {
2
2
  httpCode: number;
3
3
  httpError: string;
4
- config?: Record<string, unknown>;
5
- constructor(message: string, httpError?: string, httpCode?: number, config?: Record<string, unknown>);
4
+ config?: unknown;
5
+ constructor(message: string, httpError?: string, httpCode?: number, config?: {});
6
6
  }
@@ -12,6 +12,7 @@ export * from './types/entities/order';
12
12
  export * from './types/entities/organizationUnit';
13
13
  export * from './types/entities/partnertag';
14
14
  export * from './types/entities/program';
15
+ export * from './types/entities/provider';
15
16
  export * from './types/entities/quote';
16
17
  export * from './types/entities/report';
17
18
  export * from './types/entities/subscription';
@@ -28,6 +28,7 @@ __exportStar(require("./types/entities/order"), exports);
28
28
  __exportStar(require("./types/entities/organizationUnit"), exports);
29
29
  __exportStar(require("./types/entities/partnertag"), exports);
30
30
  __exportStar(require("./types/entities/program"), exports);
31
+ __exportStar(require("./types/entities/provider"), exports);
31
32
  __exportStar(require("./types/entities/quote"), exports);
32
33
  __exportStar(require("./types/entities/report"), exports);
33
34
  __exportStar(require("./types/entities/subscription"), exports);
@@ -3,6 +3,7 @@ import { ContactsType } from './contact';
3
3
  import { GraphqlApiContributorType } from './contributor';
4
4
  import { GraphqlApiEavType } from './eav';
5
5
  import { GraphqlApiProgramType } from './program';
6
+ import { GraphqlApiProviderInfoType } from './provider';
6
7
  import { ItemData, QuoteType } from './quote';
7
8
  import { SpecialPriceRateType } from './specialPriceRate';
8
9
  import { GraphqlApiUnitType } from './unit';
@@ -41,6 +42,7 @@ export declare type OrderItemsType = {
41
42
  order?: OrdersType;
42
43
  priceRates?: SpecialPriceRateType[];
43
44
  program?: GraphqlApiProgramType;
45
+ providerInfo?: GraphqlApiProviderInfoType;
44
46
  reference?: string;
45
47
  status?: GraphqlApiOrderStatusType;
46
48
  };
@@ -9,6 +9,7 @@ export declare type GraphqlApiProgramType = {
9
9
  disclaimer?: GraphqlApiDisclaimerType;
10
10
  internalName?: string;
11
11
  introduction?: string;
12
+ legacyCode?: string;
12
13
  levels?: ProgramLevelType[];
13
14
  name?: string;
14
15
  subscriptionExtraFields?: SubscriptionExtraFieldType[];
@@ -16,7 +17,6 @@ export declare type GraphqlApiProgramType = {
16
17
  url?: string;
17
18
  vendor?: VendorsType;
18
19
  vendorReference?: string;
19
- xacVendorCode?: string;
20
20
  };
21
21
  export declare type GraphqlApiProgramTypeType = {
22
22
  id?: number;
@@ -0,0 +1,11 @@
1
+ export declare type GraphqlApiProviderType = {
2
+ id?: number;
3
+ name?: string;
4
+ };
5
+ export declare type GraphqlApiProviderInfoType = {
6
+ id?: number;
7
+ errorMessage?: string;
8
+ isProvisioned?: boolean;
9
+ provider?: GraphqlApiProviderType;
10
+ sku?: string;
11
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=provider.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.187.0-rc.fdi.2",
7
+ "version": "3.188.0-rc-bdj-2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",