@arrowsphere/api-client 3.81.1 → 3.82.0-rc.bdj.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.
@@ -3,7 +3,9 @@ export * from './types/graphqlApiSchemas';
3
3
  export * from './types/entities/contact';
4
4
  export * from './types/entities/company';
5
5
  export * from './types/entities/country';
6
+ export * from './types/entities/order';
6
7
  export * from './types/entities/partnertag';
7
8
  export * from './types/entities/subscription';
9
+ export * from './types/entities/specialPriceRate';
8
10
  export * from './types/entities/workgroup';
9
11
  export * from './graphqlApiClient';
@@ -19,8 +19,10 @@ __exportStar(require("./types/graphqlApiSchemas"), exports);
19
19
  __exportStar(require("./types/entities/contact"), exports);
20
20
  __exportStar(require("./types/entities/company"), exports);
21
21
  __exportStar(require("./types/entities/country"), exports);
22
+ __exportStar(require("./types/entities/order"), exports);
22
23
  __exportStar(require("./types/entities/partnertag"), exports);
23
24
  __exportStar(require("./types/entities/subscription"), exports);
25
+ __exportStar(require("./types/entities/specialPriceRate"), exports);
24
26
  __exportStar(require("./types/entities/workgroup"), exports);
25
27
  __exportStar(require("./graphqlApiClient"), exports);
26
28
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,6 @@
1
1
  import { ContactsType } from './contact';
2
2
  import { CountryType } from './country';
3
+ import { OrdersType } from './order';
3
4
  import { PartnertagType } from './partnertag';
4
5
  import { SubscriptionType } from './subscription';
5
6
  import { WorkgroupType } from './workgroup';
@@ -23,6 +24,7 @@ declare type BaseCompanyType = {
23
24
  internalReference?: string;
24
25
  locked?: boolean;
25
26
  name?: string;
27
+ orders?: OrdersType[];
26
28
  partnerRef?: string;
27
29
  partnerTags?: PartnertagType[];
28
30
  phone?: string;
@@ -0,0 +1,9 @@
1
+ import { SpecialPriceRateType } from './specialPriceRate';
2
+ export declare type OrdersType = {
3
+ id?: number;
4
+ items?: OrderItemsType[];
5
+ };
6
+ export declare type OrderItemsType = {
7
+ id?: number;
8
+ priceRates?: SpecialPriceRateType[];
9
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=order.js.map
@@ -0,0 +1,14 @@
1
+ import { CompanyTypeType } from './company';
2
+ export declare type SpecialPriceRateType = {
3
+ id?: number;
4
+ createdAt?: string;
5
+ endedAt?: string;
6
+ rate?: number;
7
+ startedAt?: string;
8
+ companyType?: CompanyTypeType;
9
+ type?: SubscriptionRateType;
10
+ };
11
+ export declare type SubscriptionRateType = {
12
+ id?: number;
13
+ name?: string;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=specialPriceRate.js.map
@@ -164,6 +164,7 @@ export declare type SelectOneResultType = {
164
164
  [Queries.SELECT_ONE]: {
165
165
  [SelectableField.DATA]?: SelectOneResponseDataType;
166
166
  [SelectableField.ERRORS]?: ErrorsType;
167
+ [SelectableField.PAGINATION]?: PageType;
167
168
  };
168
169
  };
169
170
  export declare type SelectOneResponseDataType = {
@@ -203,6 +204,7 @@ export declare type SelectOneQueryType = {
203
204
  __args?: QueryVariablesType;
204
205
  [SelectableField.DATA]: SelectOneResponseDataSchema;
205
206
  [SelectableField.ERRORS]?: ErrorsSchema;
207
+ [SelectableField.PAGINATION]?: PageSchema;
206
208
  };
207
209
  };
208
210
  export declare type SelectAllQueryType = {
@@ -7,23 +7,36 @@ import { ErrorsType, PageType, Queries, SelectDataField, SelectableField } from
7
7
  import { ContactsType } from './entities/contact';
8
8
  import { ProgramType } from '../../catalog';
9
9
  import { SubscriptionType } from './entities/subscription';
10
+ import { SpecialPriceRateType } from './entities/specialPriceRate';
11
+ import { OrderItemsType, OrdersType } from './entities/order';
10
12
  export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
11
13
  declare type MissingFieldsOfCompanySchema = {
12
14
  contacts?: ContactsSchema;
13
15
  extraInformations?: CompanyExtraInformationSchema;
16
+ orders?: OrdersSchema;
14
17
  partnerTags?: PartnertagSchema;
15
18
  subscriptions?: SubscriptionSchema;
16
19
  };
17
20
  declare type MissingFieldsOfArrowCompanySchema = {
18
21
  extraInformations?: CompanyExtraInformationSchema;
22
+ orders?: OrdersSchema;
19
23
  subscriptions?: SubscriptionSchema;
20
24
  };
21
25
  declare type MissingFieldsOfEndCustomerSchema = {
22
26
  extraInformations?: CompanyExtraInformationSchema;
23
27
  contacts?: ContactsSchema;
28
+ orders?: OrdersSchema;
24
29
  partnerTags?: PartnertagSchema;
25
30
  partner?: PartnerSchema;
26
31
  };
32
+ declare type MissingFieldsOfOrderItemSchema = {
33
+ priceRates?: SpecialPriceRateSchema;
34
+ };
35
+ declare type MissingFieldsOfOrdersSchema = {
36
+ items?: OrderItemsSchema;
37
+ };
38
+ export declare type OrderItemsSchema = Merge<Schema<OrderItemsType, boolean>, MissingFieldsOfOrderItemSchema>;
39
+ export declare type OrdersSchema = Merge<Schema<OrdersType, boolean>, MissingFieldsOfOrdersSchema>;
27
40
  export declare type EndCustomerSchema = Merge<Schema<EndCustomerType, boolean>, MissingFieldsOfEndCustomerSchema>;
28
41
  export declare type PartnerSchema = Merge<Schema<PartnerType, boolean>, MissingFieldsOfCompanySchema>;
29
42
  export declare type ArrowCompanySchema = Merge<Schema<ArrowCompanyType, boolean>, MissingFieldsOfArrowCompanySchema>;
@@ -34,6 +47,7 @@ export declare type CountrySchema = Schema<CountryType, boolean>;
34
47
  export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
35
48
  export declare type PageSchema = Schema<PageType, boolean>;
36
49
  export declare type ProgramSchema = Schema<ProgramType, boolean>;
50
+ export declare type SpecialPriceRateSchema = Schema<SpecialPriceRateType, boolean>;
37
51
  export declare type SubscriptionSchema = Schema<SubscriptionType, boolean>;
38
52
  export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
39
53
  export declare type SelectAllResultSchema = {
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.81.1",
7
+ "version": "3.82.0-rc.bdj.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",