starta.apiclient 1.112.12825 → 1.112.12850
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.
|
@@ -124,7 +124,7 @@ export default class Organizations {
|
|
|
124
124
|
receiveReward(organizationLogin: string, rewardType: OrgRewardType): Promise<import("../../types").StartaResponse>;
|
|
125
125
|
setRewardConditions(organizationLogin: string, rewardType: OrgRewardType, conditions: any): Promise<import("../../types").StartaResponse>;
|
|
126
126
|
getStats(organizationLogin: string): Promise<import("../../types").StartaResponse>;
|
|
127
|
-
setAiEnabled(organizationLogin: string, aiEnabled?: boolean): Promise<import("../../types").StartaResponse>;
|
|
127
|
+
setAiEnabled(organizationLogin: string, aiEnabled?: boolean, aiModelFamily?: 'GROK' | 'OPENAI' | 'GEMINI'): Promise<import("../../types").StartaResponse>;
|
|
128
128
|
getAiUsage(organizationLogin: string): Promise<import("../../types").StartaResponse>;
|
|
129
129
|
get calendar(): Calendar;
|
|
130
130
|
get loyalty(): Loyalty;
|
|
@@ -278,11 +278,11 @@ class Organizations {
|
|
|
278
278
|
method: 'GET',
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
setAiEnabled(organizationLogin, aiEnabled) {
|
|
281
|
+
setAiEnabled(organizationLogin, aiEnabled, aiModelFamily) {
|
|
282
282
|
return this._requestRunner.performRequest({
|
|
283
283
|
url: `accounts/${organizationLogin}/aiEnabled`,
|
|
284
284
|
method: 'PUT',
|
|
285
|
-
body: { aiEnabled },
|
|
285
|
+
body: { aiEnabled, aiModelFamily },
|
|
286
286
|
config: {
|
|
287
287
|
rewriteBaseUrl: (url) => {
|
|
288
288
|
return url.replace('/api', '/comm/api');
|
|
@@ -13,6 +13,7 @@ export default class Loyalty {
|
|
|
13
13
|
addCertificateType(organizationLogin: string, certificate: CertificateInput): Promise<import("../../types").StartaResponse>;
|
|
14
14
|
updateCertificateType(organizationLogin: string, certificateTypeId: string, certificate: CertificateInput): Promise<import("../../types").StartaResponse>;
|
|
15
15
|
deleteCertificateType(organizationLogin: string, certificateTypeId: string): Promise<import("../../types").StartaResponse>;
|
|
16
|
+
getMembershipTypesExtended(organizationLogin: string): Promise<import("../../types").StartaResponse>;
|
|
16
17
|
addMembershipType(organizationLogin: string, membership: MembershipInput): Promise<import("../../types").StartaResponse>;
|
|
17
18
|
updateMembershipType(organizationLogin: string, membershipTypeId: string, membership: MembershipInput): Promise<import("../../types").StartaResponse>;
|
|
18
19
|
deleteMembershipType(organizationLogin: string, membershipTypeId: string): Promise<import("../../types").StartaResponse>;
|
|
@@ -85,6 +85,12 @@ class Loyalty {
|
|
|
85
85
|
}
|
|
86
86
|
// #endregion
|
|
87
87
|
// #region Membership types management
|
|
88
|
+
getMembershipTypesExtended(organizationLogin) {
|
|
89
|
+
return this._requestRunner.performRequest({
|
|
90
|
+
url: `accounts/${organizationLogin}/loyalty/settings/membershipTypes/extended`,
|
|
91
|
+
method: 'GET',
|
|
92
|
+
});
|
|
93
|
+
}
|
|
88
94
|
addMembershipType(organizationLogin, membership) {
|
|
89
95
|
return this._requestRunner.performRequest({
|
|
90
96
|
url: `accounts/${organizationLogin}/loyalty/settings/membershipTypes`,
|