@arrowsphere/api-client 3.202.0-rc-bdj-1 → 3.202.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.202.0] - 2025.07.02
7
+
8
+ ### Added
9
+ - [license] Add field quantity on license relations
10
+
6
11
  ## [3.201.0] - 2025.06.26
7
12
 
8
13
  ### Added
@@ -1,35 +1,18 @@
1
1
  import { PartnerType } from './company';
2
2
  import { ContactsType } from './contact';
3
- import { PartnertagType } from './partnertag';
4
3
  import { GraphqlApiProgramLevelType, GraphqlApiProgramType } from './program';
5
4
  export declare type SubscriptionType = {
6
5
  id?: number;
7
- agreement?: GraphqlApiSubscriptionAgreementType;
8
6
  autoReporting?: boolean;
9
7
  company?: PartnerType;
10
- ctaValidatedAt?: string;
11
- demandedAt?: string;
12
- enabled?: boolean;
13
8
  endedAt?: string;
14
9
  level?: GraphqlApiProgramLevelType;
15
10
  localContact?: ContactsType;
16
11
  orderId?: string;
17
12
  partnerContact?: ContactsType;
18
13
  partnerId?: string;
19
- partnerTags?: PartnertagType[];
20
14
  program?: GraphqlApiProgramType;
21
15
  startedAt?: string;
22
- status?: GraphqlApiSubscriptionStatusType;
23
- updatedAt?: string;
24
16
  userNote?: string;
25
17
  validatedAt?: string;
26
18
  };
27
- export declare type GraphqlApiSubscriptionStatusType = {
28
- id?: number;
29
- name?: string;
30
- };
31
- export declare type GraphqlApiSubscriptionAgreementType = {
32
- id?: number;
33
- lastVersion?: number;
34
- total?: number;
35
- };
@@ -137,13 +137,10 @@ declare type MissingFieldsOfStaffSchema = {
137
137
  };
138
138
  export declare type GraphqlApiStaffSchema = Merge<Schema<GraphqlApiStaffType, boolean>, MissingFieldsOfStaffSchema>;
139
139
  export declare type GraphqlApiContributorRoleSchema = Schema<GraphqlApiContributorRoleType, boolean>;
140
- declare type MissingFieldsOfSubscriptionSchema = {
141
- partnerTags?: PartnertagSchema;
142
- };
143
- export declare type SubscriptionSchema = Merge<Schema<SubscriptionType, boolean>, MissingFieldsOfSubscriptionSchema>;
144
140
  export declare type ReportStatusSchema = Schema<GraphqlApiReportStatusType, boolean>;
145
141
  export declare type SpecialPriceRateSchema = Schema<SpecialPriceRateType, boolean>;
146
142
  export declare type SubscribedProgramSchema = Schema<SubscribedProgramType, boolean>;
143
+ export declare type SubscriptionSchema = Schema<SubscriptionType, boolean>;
147
144
  export declare type UserHistorySchema = Schema<UserHistoryType, boolean>;
148
145
  export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
149
146
  export declare type SelectAllResultSchema = {
@@ -1,15 +1,18 @@
1
1
  import { AbstractEntity } from '../../../abstractEntity';
2
2
  export declare enum RelationGetDataFields {
3
3
  COLUMN_PARTNER_REF = "partnerRef",
4
+ COLUMN_QUANTITY = "quantity",
4
5
  COLUMN_TYPE = "type"
5
6
  }
6
7
  export declare type RelationGetData = {
7
8
  [RelationGetDataFields.COLUMN_PARTNER_REF]: string;
9
+ [RelationGetDataFields.COLUMN_QUANTITY]: number;
8
10
  [RelationGetDataFields.COLUMN_TYPE]: string;
9
11
  };
10
12
  export declare class RelationGetResult extends AbstractEntity<RelationGetData> {
11
13
  #private;
12
14
  constructor(data: RelationGetData);
15
+ get quantity(): number;
13
16
  get rate(): string;
14
17
  get type(): string;
15
18
  toJSON(): RelationGetData;
@@ -10,23 +10,29 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _RelationGetResult_rate, _RelationGetResult_type;
13
+ var _RelationGetResult_quantity, _RelationGetResult_rate, _RelationGetResult_type;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.RelationGetResult = exports.RelationGetDataFields = void 0;
16
16
  const abstractEntity_1 = require("../../../abstractEntity");
17
17
  var RelationGetDataFields;
18
18
  (function (RelationGetDataFields) {
19
19
  RelationGetDataFields["COLUMN_PARTNER_REF"] = "partnerRef";
20
+ RelationGetDataFields["COLUMN_QUANTITY"] = "quantity";
20
21
  RelationGetDataFields["COLUMN_TYPE"] = "type";
21
22
  })(RelationGetDataFields = exports.RelationGetDataFields || (exports.RelationGetDataFields = {}));
22
23
  class RelationGetResult extends abstractEntity_1.AbstractEntity {
23
24
  constructor(data) {
24
25
  super(data);
26
+ _RelationGetResult_quantity.set(this, void 0);
25
27
  _RelationGetResult_rate.set(this, void 0);
26
28
  _RelationGetResult_type.set(this, void 0);
29
+ __classPrivateFieldSet(this, _RelationGetResult_quantity, data[RelationGetDataFields.COLUMN_QUANTITY], "f");
27
30
  __classPrivateFieldSet(this, _RelationGetResult_rate, data[RelationGetDataFields.COLUMN_PARTNER_REF], "f");
28
31
  __classPrivateFieldSet(this, _RelationGetResult_type, data[RelationGetDataFields.COLUMN_TYPE], "f");
29
32
  }
33
+ get quantity() {
34
+ return __classPrivateFieldGet(this, _RelationGetResult_quantity, "f");
35
+ }
30
36
  get rate() {
31
37
  return __classPrivateFieldGet(this, _RelationGetResult_rate, "f");
32
38
  }
@@ -36,10 +42,11 @@ class RelationGetResult extends abstractEntity_1.AbstractEntity {
36
42
  toJSON() {
37
43
  return {
38
44
  [RelationGetDataFields.COLUMN_PARTNER_REF]: this.rate,
45
+ [RelationGetDataFields.COLUMN_QUANTITY]: this.quantity,
39
46
  [RelationGetDataFields.COLUMN_TYPE]: this.type,
40
47
  };
41
48
  }
42
49
  }
43
50
  exports.RelationGetResult = RelationGetResult;
44
- _RelationGetResult_rate = new WeakMap(), _RelationGetResult_type = new WeakMap();
51
+ _RelationGetResult_quantity = new WeakMap(), _RelationGetResult_rate = new WeakMap(), _RelationGetResult_type = new WeakMap();
45
52
  //# sourceMappingURL=relationGetResult.js.map
@@ -1,4 +1,3 @@
1
1
  export * from './entities/subscription';
2
2
  export * from './entities/subscriptionsListResult';
3
3
  export * from './subscriptionsClient';
4
- export * from './types/subscriptionStatus';
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities/subscription"), exports);
18
18
  __exportStar(require("./entities/subscriptionsListResult"), exports);
19
19
  __exportStar(require("./subscriptionsClient"), exports);
20
- __exportStar(require("./types/subscriptionStatus"), exports);
21
20
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Class SubscriptionsClient
3
3
  */
4
- import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
4
+ import { AbstractRestfulClient } from '../abstractRestfulClient';
5
5
  import { SubscriptionData } from './entities/subscription';
6
6
  import { SubscriptionsListResult } from './entities/subscriptionsListResult';
7
7
  export declare type SubscriptionsListPayload = {
@@ -101,5 +101,4 @@ export declare class SubscriptionsClient extends AbstractRestfulClient {
101
101
  list(filters?: SubscriptionsListPayload): Promise<PartnerSubscriptionsListData>;
102
102
  listAdmin(filters?: SubscriptionsListPayload, perPage?: number, page?: number): Promise<SubscriptionsListResult>;
103
103
  addSubscription(filters: SubscriptionCreationData): Promise<CreateSubscriptionData>;
104
- validate(subscriptionReference: string, parameters?: Parameters): Promise<void>;
105
104
  }
@@ -57,10 +57,6 @@ class SubscriptionsClient extends abstractRestfulClient_1.AbstractRestfulClient
57
57
  async addSubscription(filters) {
58
58
  return this.post(filters);
59
59
  }
60
- async validate(subscriptionReference, parameters = {}) {
61
- this.path = `/${subscriptionReference}/validateCTA`;
62
- return this.post({}, parameters);
63
- }
64
60
  }
65
61
  exports.SubscriptionsClient = SubscriptionsClient;
66
62
  //# sourceMappingURL=subscriptionsClient.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.202.0-rc-bdj-1",
7
+ "version": "3.202.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",
@@ -90,4 +90,4 @@
90
90
  "type-fest": "^2.19.0",
91
91
  "validatorjs": "3.22.1"
92
92
  }
93
- }
93
+ }
@@ -1,11 +0,0 @@
1
- export declare enum SubscriptionStatusEnum {
2
- ENDED = "Ended",
3
- ERROR = "Error",
4
- IN_PROGRESS = "In progress",
5
- MIGRATION_FAILED = "Migration failed",
6
- MIGRATION_IN_PROGRESS = "Migration in progress",
7
- ONGOING_VALIDATION = "Ongoing Validation",
8
- PENDING_ACCEPTANCE_OF_CTA = "Pending user's acceptance of CTA",
9
- PENDING_VALIDATION = "Pending validation",
10
- VALIDATED = "Validated"
11
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionStatusEnum = void 0;
4
- var SubscriptionStatusEnum;
5
- (function (SubscriptionStatusEnum) {
6
- SubscriptionStatusEnum["ENDED"] = "Ended";
7
- SubscriptionStatusEnum["ERROR"] = "Error";
8
- SubscriptionStatusEnum["IN_PROGRESS"] = "In progress";
9
- SubscriptionStatusEnum["MIGRATION_FAILED"] = "Migration failed";
10
- SubscriptionStatusEnum["MIGRATION_IN_PROGRESS"] = "Migration in progress";
11
- SubscriptionStatusEnum["ONGOING_VALIDATION"] = "Ongoing Validation";
12
- SubscriptionStatusEnum["PENDING_ACCEPTANCE_OF_CTA"] = "Pending user's acceptance of CTA";
13
- SubscriptionStatusEnum["PENDING_VALIDATION"] = "Pending validation";
14
- SubscriptionStatusEnum["VALIDATED"] = "Validated";
15
- })(SubscriptionStatusEnum = exports.SubscriptionStatusEnum || (exports.SubscriptionStatusEnum = {}));
16
- //# sourceMappingURL=subscriptionStatus.js.map