@arrowsphere/api-client 3.169.0 → 3.170.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.
@@ -10,8 +10,10 @@ export * from './types/entities/organizationUnit';
10
10
  export * from './types/entities/partnertag';
11
11
  export * from './types/entities/program';
12
12
  export * from './types/entities/quote';
13
+ export * from './types/entities/report';
13
14
  export * from './types/entities/subscription';
14
15
  export * from './types/entities/specialPriceRate';
16
+ export * from './types/entities/unit';
15
17
  export * from './types/entities/user';
16
18
  export * from './types/entities/vendor';
17
19
  export * from './types/entities/workgroup';
@@ -26,8 +26,10 @@ __exportStar(require("./types/entities/organizationUnit"), exports);
26
26
  __exportStar(require("./types/entities/partnertag"), exports);
27
27
  __exportStar(require("./types/entities/program"), exports);
28
28
  __exportStar(require("./types/entities/quote"), exports);
29
+ __exportStar(require("./types/entities/report"), exports);
29
30
  __exportStar(require("./types/entities/subscription"), exports);
30
31
  __exportStar(require("./types/entities/specialPriceRate"), exports);
32
+ __exportStar(require("./types/entities/unit"), exports);
31
33
  __exportStar(require("./types/entities/user"), exports);
32
34
  __exportStar(require("./types/entities/vendor"), exports);
33
35
  __exportStar(require("./types/entities/workgroup"), exports);
@@ -1,4 +1,5 @@
1
1
  import { ContactsType } from './contact';
2
+ import { CountableType } from './counting';
2
3
  import { CountryType } from './country';
3
4
  import { CurrencyType } from './currency';
4
5
  import { OrdersType } from './order';
@@ -40,10 +41,6 @@ export declare type EndCustomerType = BaseCompanyType & {
40
41
  country?: CountryType;
41
42
  partner?: PartnerType;
42
43
  };
43
- declare type CountableType = {
44
- id?: number;
45
- total?: number;
46
- };
47
44
  export declare type CompanyExtraInformation = {
48
45
  id?: number;
49
46
  companyId?: number;
@@ -0,0 +1,4 @@
1
+ export declare type CountableType = {
2
+ id?: number;
3
+ total?: number;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=counting.js.map
@@ -1,4 +1,5 @@
1
1
  import { SpecialPriceRateType } from './specialPriceRate';
2
+ import { GraphqlApiUnitType } from './unit';
2
3
  export declare type OrdersType = {
3
4
  id?: number;
4
5
  items?: OrderItemsType[];
@@ -7,3 +8,9 @@ export declare type OrderItemsType = {
7
8
  id?: number;
8
9
  priceRates?: SpecialPriceRateType[];
9
10
  };
11
+ export declare type GraphqlApiRealOrderType = {
12
+ id?: number;
13
+ customerId?: number;
14
+ totalAmount?: number;
15
+ unit?: GraphqlApiUnitType;
16
+ };
@@ -7,6 +7,12 @@ export declare type GraphqlApiProgramType = {
7
7
  name?: string;
8
8
  vendor?: VendorsType;
9
9
  };
10
+ export declare type GraphqlApiProgramLevelType = {
11
+ id?: number;
12
+ enabled?: boolean;
13
+ internalName?: string;
14
+ name?: string;
15
+ };
10
16
  export declare type SubscribedProgramType = {
11
17
  id?: number;
12
18
  availabilityEndedAt?: string;
@@ -0,0 +1,27 @@
1
+ import { CountableType } from './counting';
2
+ import { GraphqlApiRealOrderType } from './order';
3
+ import { SubscriptionType } from './subscription';
4
+ export declare type GraphqlApiReportType = {
5
+ id?: number;
6
+ adminNote?: string;
7
+ createdAt?: string;
8
+ endedAt?: string;
9
+ items?: GraphqlApiReportItemType[];
10
+ lastUpdatedAt?: string;
11
+ reportMonth?: string;
12
+ subscription?: SubscriptionType;
13
+ totalAmount?: number;
14
+ userNote?: string;
15
+ quantitySum?: CountableType;
16
+ order?: GraphqlApiRealOrderType;
17
+ status?: GraphqlApiReportStatusType;
18
+ };
19
+ export declare type GraphqlApiReportItemType = {
20
+ id?: number;
21
+ quantity?: number;
22
+ report?: GraphqlApiReportType;
23
+ };
24
+ export declare type GraphqlApiReportStatusType = {
25
+ id?: number;
26
+ name?: string;
27
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=report.js.map
@@ -1,10 +1,12 @@
1
1
  import { PartnerType } from './company';
2
2
  import { ContactsType } from './contact';
3
- import { GraphqlApiProgramType } from './program';
3
+ import { GraphqlApiProgramLevelType, GraphqlApiProgramType } from './program';
4
4
  export declare type SubscriptionType = {
5
5
  id?: number;
6
6
  company?: PartnerType;
7
+ level?: GraphqlApiProgramLevelType;
7
8
  localContact?: ContactsType;
8
9
  partnerContact?: ContactsType;
10
+ partnerId?: string;
9
11
  program?: GraphqlApiProgramType;
10
12
  };
@@ -0,0 +1,5 @@
1
+ export declare type GraphqlApiUnitType = {
2
+ id?: number;
3
+ name?: string;
4
+ symbol?: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=unit.js.map
@@ -5,6 +5,7 @@ import { LicenseBudgetType } from './entities/licenseBudget';
5
5
  import { PartnertagType } from './entities/partnertag';
6
6
  import { GraphqlApiProgramType, SubscribedProgramType } from './entities/program';
7
7
  import { QuoteType } from './entities/quote';
8
+ import { GraphqlApiReportType } from './entities/report';
8
9
  import { SpecialPriceRateType } from './entities/specialPriceRate';
9
10
  import { SubscriptionType } from './entities/subscription';
10
11
  import { UserHistoryType, UserType } from './entities/user';
@@ -124,6 +125,7 @@ export declare enum SelectDataField {
124
125
  PARTNERTAG = "partnertag",
125
126
  PROGRAM = "program",
126
127
  QUOTE = "quote",
128
+ REPORT = "report",
127
129
  SPECIAL_PRICE_RATE = "specialPriceRate",
128
130
  SUBSCRIBED_PROGRAM = "subscribedProgram",
129
131
  SUBSCRIPTION = "subscription",
@@ -148,6 +150,7 @@ export declare type SelectAllResponseDataType = {
148
150
  [SelectDataField.PARTNERTAG]?: PartnertagType[];
149
151
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
150
152
  [SelectDataField.QUOTE]?: QuoteType[];
153
+ [SelectDataField.REPORT]?: GraphqlApiReportType[];
151
154
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType[];
152
155
  [SelectDataField.SUBSCRIPTION]?: SubscriptionType[];
153
156
  [SelectDataField.USER]?: UserType[];
@@ -221,6 +224,7 @@ export declare type SelectOneResponseDataType = {
221
224
  [SelectDataField.PARTNERTAG]?: PartnertagType;
222
225
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType;
223
226
  [SelectDataField.QUOTE]?: QuoteType;
227
+ [SelectDataField.REPORT]?: GraphqlApiReportType;
224
228
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType;
225
229
  [SelectDataField.SUBSCRIPTION]?: SubscriptionType;
226
230
  [SelectDataField.USER]?: UserType;
@@ -100,6 +100,7 @@ var SelectDataField;
100
100
  SelectDataField["PARTNERTAG"] = "partnertag";
101
101
  SelectDataField["PROGRAM"] = "program";
102
102
  SelectDataField["QUOTE"] = "quote";
103
+ SelectDataField["REPORT"] = "report";
103
104
  SelectDataField["SPECIAL_PRICE_RATE"] = "specialPriceRate";
104
105
  SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
105
106
  SelectDataField["SUBSCRIPTION"] = "subscription";
@@ -17,6 +17,7 @@ import { CurrencyType } from './entities/currency';
17
17
  import { ItemData, QuoteItemType, QuoteType } from './entities/quote';
18
18
  import { QuoteVersion } from './entities/quoteVersion';
19
19
  import { Comment } from './entities/comment';
20
+ import { GraphqlApiReportItemType, GraphqlApiReportType } from './entities/report';
20
21
  export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
21
22
  declare type MissingFieldsOfCompanySchema = {
22
23
  contacts?: ContactsSchema;
@@ -86,6 +87,11 @@ export declare type UserSchema = Merge<Schema<UserType, boolean>, MissingFieldsO
86
87
  export declare type LicenseBudgetSchema = Merge<Schema<LicenseBudgetType, boolean>, MissingFieldsOfLicenseBudgetSchema>;
87
88
  export declare type OrderItemsSchema = Merge<Schema<OrderItemsType, boolean>, MissingFieldsOfOrderItemSchema>;
88
89
  export declare type OrdersSchema = Merge<Schema<OrdersType, boolean>, MissingFieldsOfOrdersSchema>;
90
+ declare type MissingFieldsOfReportSchema = {
91
+ items?: ReportItemSchema;
92
+ };
93
+ export declare type ReportSchema = Merge<Schema<GraphqlApiReportType, boolean>, MissingFieldsOfReportSchema>;
94
+ export declare type ReportItemSchema = Schema<GraphqlApiReportItemType, boolean>;
89
95
  export declare type EndCustomerSchema = Merge<Schema<EndCustomerType, boolean>, MissingFieldsOfEndCustomerSchema>;
90
96
  export declare type PartnerSchema = Merge<Schema<PartnerType, boolean>, MissingFieldsOfCompanySchema>;
91
97
  export declare type ArrowCompanySchema = Merge<Schema<ArrowCompanyType, boolean>, MissingFieldsOfArrowCompanySchema>;
@@ -119,6 +125,7 @@ export declare type SelectAllResponseDataSchema = {
119
125
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
120
126
  [SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
121
127
  [SelectDataField.QUOTE]?: QuoteSchema;
128
+ [SelectDataField.REPORT]?: ReportSchema;
122
129
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
123
130
  [SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
124
131
  [SelectDataField.USER]?: UserSchema;
@@ -139,6 +146,7 @@ export declare type SelectOneResponseDataSchema = {
139
146
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
140
147
  [SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
141
148
  [SelectDataField.QUOTE]?: QuoteSchema;
149
+ [SelectDataField.REPORT]?: ReportSchema;
142
150
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
143
151
  [SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
144
152
  [SelectDataField.USER]?: UserSchema;
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.169.0",
7
+ "version": "3.170.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",