@arrowsphere/api-client 3.160.0-rc-jpb-1 → 3.160.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 +5 -0
- package/build/graphqlApi/types/entities/program.d.ts +0 -75
- package/build/graphqlApi/types/entities/vendor.d.ts +0 -16
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +1 -4
- package/build/graphqlApi/types/graphqlApiQueries.js +0 -1
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +2 -26
- package/build/subscriptions/subscriptionsClient.d.ts +0 -11
- package/build/subscriptions/subscriptionsClient.js +0 -3
- package/package.json +1 -1
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.160.0] - 2024.12.06
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [graphql-api] Expose entity Program
|
|
10
|
+
|
|
6
11
|
## [3.159.0] - 2024.11.26
|
|
7
12
|
|
|
8
13
|
### Added
|
|
@@ -3,85 +3,10 @@ import { SubscriptionType } from './subscription';
|
|
|
3
3
|
import { VendorsType } from './vendor';
|
|
4
4
|
export declare type GraphqlApiProgramType = {
|
|
5
5
|
id?: number;
|
|
6
|
-
clickToAccept?: number;
|
|
7
|
-
description?: string;
|
|
8
|
-
expire?: number;
|
|
9
6
|
internalName?: string;
|
|
10
|
-
introduction?: string;
|
|
11
|
-
levels?: ProgramLevelType[];
|
|
12
7
|
name?: string;
|
|
13
|
-
subscriptionDetailKeys?: SubscriptionDetailKeyType[];
|
|
14
|
-
url?: string;
|
|
15
8
|
vendor?: VendorsType;
|
|
16
9
|
};
|
|
17
|
-
export declare type SubscriptionDetailKeyType = {
|
|
18
|
-
id?: number;
|
|
19
|
-
name?: string;
|
|
20
|
-
key?: string;
|
|
21
|
-
specificProgramId?: number;
|
|
22
|
-
isMandatory?: boolean;
|
|
23
|
-
isSendXac?: boolean;
|
|
24
|
-
type?: string;
|
|
25
|
-
rule?: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
};
|
|
28
|
-
export declare type ProgramSkuPackAvailabilityType = {
|
|
29
|
-
id?: number;
|
|
30
|
-
programId?: number;
|
|
31
|
-
levelId?: number;
|
|
32
|
-
skuPackId?: number;
|
|
33
|
-
countryGroupId?: number;
|
|
34
|
-
startDate?: Date;
|
|
35
|
-
endDate?: Date;
|
|
36
|
-
programSkuPack?: ProgramSkuPackType;
|
|
37
|
-
};
|
|
38
|
-
export declare type ProgramSkuPackType = {
|
|
39
|
-
id?: number;
|
|
40
|
-
name?: string;
|
|
41
|
-
description?: string;
|
|
42
|
-
note?: string;
|
|
43
|
-
packSku?: string;
|
|
44
|
-
notAvailableToUser?: boolean;
|
|
45
|
-
isCustom?: boolean;
|
|
46
|
-
companyId?: number;
|
|
47
|
-
programSkus?: ProgramSkuType[];
|
|
48
|
-
};
|
|
49
|
-
export declare type ProgramSkuType = {
|
|
50
|
-
id?: number;
|
|
51
|
-
description?: string;
|
|
52
|
-
typeId?: number;
|
|
53
|
-
};
|
|
54
|
-
export declare type ProgramLevelType = {
|
|
55
|
-
id?: number;
|
|
56
|
-
uuid?: string;
|
|
57
|
-
programId?: number;
|
|
58
|
-
internalName?: string;
|
|
59
|
-
name?: string;
|
|
60
|
-
description?: string;
|
|
61
|
-
imageLogo?: string;
|
|
62
|
-
monthLength?: string;
|
|
63
|
-
agreementId?: number;
|
|
64
|
-
level?: number;
|
|
65
|
-
enabled?: boolean;
|
|
66
|
-
benefits?: ProgramBenefitType[];
|
|
67
|
-
requirements?: ProgramRequirementType[];
|
|
68
|
-
programSkuPackAvailabilities?: ProgramSkuPackAvailabilityType[];
|
|
69
|
-
};
|
|
70
|
-
export declare type ProgramBenefitType = {
|
|
71
|
-
id?: number;
|
|
72
|
-
uuid?: string;
|
|
73
|
-
programId?: number;
|
|
74
|
-
title?: string;
|
|
75
|
-
description?: string;
|
|
76
|
-
};
|
|
77
|
-
export declare type ProgramRequirementType = {
|
|
78
|
-
id?: number;
|
|
79
|
-
uuid?: string;
|
|
80
|
-
programId?: number;
|
|
81
|
-
levelId?: number;
|
|
82
|
-
title?: string;
|
|
83
|
-
description?: string;
|
|
84
|
-
};
|
|
85
10
|
export declare type SubscribedProgramType = {
|
|
86
11
|
id?: number;
|
|
87
12
|
availabilityEndedAt?: string;
|
|
@@ -1,26 +1,10 @@
|
|
|
1
|
-
import { CountryType } from './country';
|
|
2
1
|
export declare type VendorsType = {
|
|
3
2
|
id?: number;
|
|
4
3
|
identifier?: string;
|
|
5
4
|
licenseUrl?: string;
|
|
6
|
-
location?: VendorLocationType;
|
|
7
5
|
logoLarge?: string;
|
|
8
6
|
logoSmall?: string;
|
|
9
7
|
logoStandard?: string;
|
|
10
8
|
name?: string;
|
|
11
9
|
url?: string;
|
|
12
10
|
};
|
|
13
|
-
export declare type VendorLocationType = {
|
|
14
|
-
id?: number;
|
|
15
|
-
vendorId?: number;
|
|
16
|
-
name?: string;
|
|
17
|
-
address1?: string;
|
|
18
|
-
address2?: string;
|
|
19
|
-
city?: string;
|
|
20
|
-
state?: string;
|
|
21
|
-
zipCode?: string;
|
|
22
|
-
countryId?: number;
|
|
23
|
-
country?: CountryType;
|
|
24
|
-
phoneNumber?: string;
|
|
25
|
-
footprint?: string;
|
|
26
|
-
};
|
|
@@ -2,7 +2,7 @@ import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/compa
|
|
|
2
2
|
import { ContinentType, CountryType } from './entities/country';
|
|
3
3
|
import { LicenseBudgetType } from './entities/licenseBudget';
|
|
4
4
|
import { PartnertagType } from './entities/partnertag';
|
|
5
|
-
import { GraphqlApiProgramType,
|
|
5
|
+
import { GraphqlApiProgramType, SubscribedProgramType } from './entities/program';
|
|
6
6
|
import { QuoteType } from './entities/quote';
|
|
7
7
|
import { SubscriptionType } from './entities/subscription';
|
|
8
8
|
import { UserHistoryType, UserType } from './entities/user';
|
|
@@ -120,7 +120,6 @@ export declare enum SelectDataField {
|
|
|
120
120
|
PARTNER = "partner",
|
|
121
121
|
PARTNERTAG = "partnertag",
|
|
122
122
|
PROGRAM = "program",
|
|
123
|
-
PROGRAM_SKU_PACK_AVAILABILITY = "programSkuPackAvailability",
|
|
124
123
|
QUOTE = "quote",
|
|
125
124
|
SUBSCRIBED_PROGRAM = "subscribedProgram",
|
|
126
125
|
SUBSCRIPTION = "subscription",
|
|
@@ -144,7 +143,6 @@ export declare type SelectAllResponseDataType = {
|
|
|
144
143
|
[SelectDataField.PARTNER]?: PartnerType[];
|
|
145
144
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
146
145
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
|
|
147
|
-
[SelectDataField.PROGRAM_SKU_PACK_AVAILABILITY]?: ProgramSkuPackAvailabilityType[];
|
|
148
146
|
[SelectDataField.QUOTE]?: QuoteType[];
|
|
149
147
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType[];
|
|
150
148
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionType[];
|
|
@@ -194,7 +192,6 @@ export declare type SelectOneResponseDataType = {
|
|
|
194
192
|
[SelectDataField.PARTNER]?: PartnerType;
|
|
195
193
|
[SelectDataField.PARTNERTAG]?: PartnertagType;
|
|
196
194
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramType;
|
|
197
|
-
[SelectDataField.PROGRAM_SKU_PACK_AVAILABILITY]?: ProgramSkuPackAvailabilityType;
|
|
198
195
|
[SelectDataField.QUOTE]?: QuoteType;
|
|
199
196
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType;
|
|
200
197
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionType;
|
|
@@ -98,7 +98,6 @@ var SelectDataField;
|
|
|
98
98
|
SelectDataField["PARTNER"] = "partner";
|
|
99
99
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
100
100
|
SelectDataField["PROGRAM"] = "program";
|
|
101
|
-
SelectDataField["PROGRAM_SKU_PACK_AVAILABILITY"] = "programSkuPackAvailability";
|
|
102
101
|
SelectDataField["QUOTE"] = "quote";
|
|
103
102
|
SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
|
|
104
103
|
SelectDataField["SUBSCRIPTION"] = "subscription";
|
|
@@ -9,7 +9,7 @@ import { SubscriptionType } from './entities/subscription';
|
|
|
9
9
|
import { SpecialPriceRateType } from './entities/specialPriceRate';
|
|
10
10
|
import { OrderItemsType, OrdersType } from './entities/order';
|
|
11
11
|
import { VendorsType } from './entities/vendor';
|
|
12
|
-
import { GraphqlApiProgramType,
|
|
12
|
+
import { GraphqlApiProgramType, SubscribedProgramType } from './entities/program';
|
|
13
13
|
import { LicenseBudgetNotificationType, LicenseBudgetType } from './entities/licenseBudget';
|
|
14
14
|
import { UserHistoryType, UserType } from './entities/user';
|
|
15
15
|
import { OrganizationUnitsType } from './entities/organizationUnit';
|
|
@@ -97,30 +97,7 @@ export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
|
|
|
97
97
|
export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
|
|
98
98
|
export declare type OrganizationUnitSchema = Schema<OrganizationUnitsType, boolean>;
|
|
99
99
|
export declare type PageSchema = Schema<PageType, boolean>;
|
|
100
|
-
export declare type
|
|
101
|
-
export declare type ProgramSkuSchema = Schema<ProgramSkuType, boolean>;
|
|
102
|
-
export declare type ProgramRequirementSchema = Schema<ProgramRequirementType, boolean>;
|
|
103
|
-
export declare type ProgramLevelSchema = Schema<ProgramLevelType, boolean>;
|
|
104
|
-
declare type MissingFieldsOfProgramSkuPackSchema = {
|
|
105
|
-
programSkus?: ProgramSkuSchema;
|
|
106
|
-
};
|
|
107
|
-
declare type ProgramSkuPackSchema = Merge<Schema<ProgramSkuPackType, boolean>, MissingFieldsOfProgramSkuPackSchema>;
|
|
108
|
-
declare type MissingFieldsOfProgramSkuPackAvailabilitySchema = {
|
|
109
|
-
programSkuPack?: ProgramSkuPackSchema;
|
|
110
|
-
};
|
|
111
|
-
export declare type ProgramSkuPackAvailabilitySchema = Merge<Schema<ProgramSkuPackAvailabilityType, // append programSkuPack <----------------------------------------------------
|
|
112
|
-
boolean>, MissingFieldsOfProgramSkuPackAvailabilitySchema>;
|
|
113
|
-
export declare type SubscriptionDetailKeySchema = Schema<SubscriptionDetailKeyType, boolean>;
|
|
114
|
-
export declare type MissingFieldsOfLevelSchema = {
|
|
115
|
-
benefits?: ProgramBenefitSchema;
|
|
116
|
-
programSkuPackAvailabilities?: ProgramSkuPackAvailabilitySchema;
|
|
117
|
-
requirements?: ProgramRequirementSchema;
|
|
118
|
-
};
|
|
119
|
-
export declare type MissingFieldsOfProgramSchema = {
|
|
120
|
-
levels?: Merge<Schema<ProgramLevelSchema, boolean>, MissingFieldsOfLevelSchema>;
|
|
121
|
-
subscriptionDetailKeys?: SubscriptionDetailKeySchema;
|
|
122
|
-
};
|
|
123
|
-
export declare type GraphqlApiProgramSchema = Merge<Schema<GraphqlApiProgramType, boolean>, MissingFieldsOfProgramSchema>;
|
|
100
|
+
export declare type GraphqlApiProgramSchema = Schema<GraphqlApiProgramType, boolean>;
|
|
124
101
|
export declare type SpecialPriceRateSchema = Schema<SpecialPriceRateType, boolean>;
|
|
125
102
|
export declare type SubscribedProgramSchema = Schema<SubscribedProgramType, boolean>;
|
|
126
103
|
export declare type SubscriptionSchema = Schema<SubscriptionType, boolean>;
|
|
@@ -141,7 +118,6 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
141
118
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
142
119
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
143
120
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
|
|
144
|
-
[SelectDataField.PROGRAM_SKU_PACK_AVAILABILITY]?: ProgramSkuPackAvailabilitySchema;
|
|
145
121
|
[SelectDataField.QUOTE]?: QuoteSchema;
|
|
146
122
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
|
|
147
123
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
|
|
@@ -29,16 +29,6 @@ export declare type SubscriptionsListData = {
|
|
|
29
29
|
previous: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
export declare type SubscriptionCreationData = {
|
|
33
|
-
name: string;
|
|
34
|
-
level: string;
|
|
35
|
-
sku: string;
|
|
36
|
-
extraInformation?: {
|
|
37
|
-
programs: {
|
|
38
|
-
[programName: string]: Record<string, string>;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
32
|
export declare class SubscriptionsClient extends AbstractRestfulClient {
|
|
43
33
|
/**
|
|
44
34
|
* The base path of the API
|
|
@@ -72,5 +62,4 @@ export declare class SubscriptionsClient extends AbstractRestfulClient {
|
|
|
72
62
|
*
|
|
73
63
|
*/
|
|
74
64
|
list(postData?: SubscriptionsListPayload, perPage?: number, page?: number): Promise<SubscriptionsListResult>;
|
|
75
|
-
addSubscription(postData: SubscriptionCreationData): Promise<void>;
|
|
76
65
|
}
|
|
@@ -50,9 +50,6 @@ class SubscriptionsClient extends abstractRestfulClient_1.AbstractRestfulClient
|
|
|
50
50
|
const response = await this.listRaw(postData);
|
|
51
51
|
return new subscriptionsListResult_1.SubscriptionsListResult(response, this, postData);
|
|
52
52
|
}
|
|
53
|
-
async addSubscription(postData) {
|
|
54
|
-
return this.post(postData);
|
|
55
|
-
}
|
|
56
53
|
}
|
|
57
54
|
exports.SubscriptionsClient = SubscriptionsClient;
|
|
58
55
|
//# sourceMappingURL=subscriptionsClient.js.map
|
package/package.json
CHANGED