@widgetic/api-sdk 1.0.16 → 1.0.17
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/dist/apis/ABTestingApi.js +90 -30
- package/dist/apis/AdminApi.js +12 -4
- package/dist/apis/AuthenticationApi.d.ts +3 -3
- package/dist/apis/AuthenticationApi.js +31 -11
- package/dist/apis/BatchApi.js +6 -2
- package/dist/apis/BillingApi.d.ts +13 -13
- package/dist/apis/BillingApi.js +8 -8
- package/dist/apis/CanvasesApi.js +30 -10
- package/dist/apis/ComponentsApi.d.ts +3 -3
- package/dist/apis/ComponentsApi.js +43 -15
- package/dist/apis/CompositionsApi.js +132 -44
- package/dist/apis/ContentsApi.js +36 -12
- package/dist/apis/ConversationsApi.js +30 -10
- package/dist/apis/CreditsApi.js +30 -10
- package/dist/apis/DemoContentsApi.js +30 -10
- package/dist/apis/EntitlementsApi.js +30 -10
- package/dist/apis/FoldersApi.js +30 -10
- package/dist/apis/HealthApi.js +12 -4
- package/dist/apis/IntegrationsApi.js +42 -14
- package/dist/apis/InvitationsApi.js +12 -4
- package/dist/apis/InvoicesApi.js +36 -12
- package/dist/apis/ManagedUsersApi.js +36 -12
- package/dist/apis/MessagesApi.js +36 -12
- package/dist/apis/OrganizationActivitiesApi.d.ts +93 -0
- package/dist/apis/OrganizationActivitiesApi.js +221 -0
- package/dist/apis/OrganizationsApi.d.ts +31 -106
- package/dist/apis/OrganizationsApi.js +324 -292
- package/dist/apis/PartnerCustomizationsApi.js +30 -10
- package/dist/apis/PartnersApi.js +30 -10
- package/dist/apis/PromptsApi.js +30 -10
- package/dist/apis/SubscriptionPlansApi.js +12 -4
- package/dist/apis/SubscriptionsApi.js +48 -16
- package/dist/apis/TranslationsApi.d.ts +5 -5
- package/dist/apis/TranslationsApi.js +2 -2
- package/dist/apis/UIComponentsApi.js +24 -8
- package/dist/apis/UsageApi.js +42 -14
- package/dist/apis/UsersApi.d.ts +3 -3
- package/dist/apis/UsersApi.js +1 -1
- package/dist/apis/WorkspacesApi.js +78 -26
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ABTestingApi.js +90 -30
- package/dist/esm/apis/AdminApi.js +12 -4
- package/dist/esm/apis/AuthenticationApi.d.ts +3 -3
- package/dist/esm/apis/AuthenticationApi.js +32 -12
- package/dist/esm/apis/BatchApi.js +6 -2
- package/dist/esm/apis/BillingApi.d.ts +13 -13
- package/dist/esm/apis/BillingApi.js +9 -9
- package/dist/esm/apis/CanvasesApi.js +30 -10
- package/dist/esm/apis/ComponentsApi.d.ts +3 -3
- package/dist/esm/apis/ComponentsApi.js +44 -16
- package/dist/esm/apis/CompositionsApi.js +132 -44
- package/dist/esm/apis/ContentsApi.js +36 -12
- package/dist/esm/apis/ConversationsApi.js +30 -10
- package/dist/esm/apis/CreditsApi.js +30 -10
- package/dist/esm/apis/DemoContentsApi.js +30 -10
- package/dist/esm/apis/EntitlementsApi.js +30 -10
- package/dist/esm/apis/FoldersApi.js +30 -10
- package/dist/esm/apis/HealthApi.js +12 -4
- package/dist/esm/apis/IntegrationsApi.js +42 -14
- package/dist/esm/apis/InvitationsApi.js +12 -4
- package/dist/esm/apis/InvoicesApi.js +36 -12
- package/dist/esm/apis/ManagedUsersApi.js +36 -12
- package/dist/esm/apis/MessagesApi.js +36 -12
- package/dist/esm/apis/OrganizationActivitiesApi.d.ts +93 -0
- package/dist/esm/apis/OrganizationActivitiesApi.js +217 -0
- package/dist/esm/apis/OrganizationsApi.d.ts +31 -106
- package/dist/esm/apis/OrganizationsApi.js +324 -292
- package/dist/esm/apis/PartnerCustomizationsApi.js +30 -10
- package/dist/esm/apis/PartnersApi.js +30 -10
- package/dist/esm/apis/PromptsApi.js +30 -10
- package/dist/esm/apis/SubscriptionPlansApi.js +12 -4
- package/dist/esm/apis/SubscriptionsApi.js +48 -16
- package/dist/esm/apis/TranslationsApi.d.ts +5 -5
- package/dist/esm/apis/TranslationsApi.js +3 -3
- package/dist/esm/apis/UIComponentsApi.js +24 -8
- package/dist/esm/apis/UsageApi.js +42 -14
- package/dist/esm/apis/UsersApi.d.ts +3 -3
- package/dist/esm/apis/UsersApi.js +2 -2
- package/dist/esm/apis/WorkspacesApi.js +78 -26
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
- package/dist/esm/models/AgentModelsGet200ResponseModelsInner.js +2 -0
- package/dist/esm/models/Canvas.d.ts +6 -0
- package/dist/esm/models/Canvas.js +2 -0
- package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
- package/dist/esm/models/CreateCanvasRequest.js +2 -0
- package/dist/esm/models/ErrorResponse.d.ts +12 -12
- package/dist/esm/models/ErrorResponse.js +4 -4
- package/dist/esm/models/GetCompositionsBatch200Response.d.ts +3 -3
- package/dist/esm/models/GetCompositionsBatch200Response.js +3 -3
- package/dist/esm/models/GetWidgetsBatch200Response.d.ts +3 -3
- package/dist/esm/models/GetWidgetsBatch200Response.js +3 -3
- package/dist/esm/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/esm/models/{GetCompositionsBatch200ResponseErrorsInner.js → GetWidgetsBatch200ResponseErrorsInner.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +42 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js → OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +42 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js → OrganizationsOrgIdBillingPaymentMethodsPostRequest.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js → OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +41 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.js +41 -0
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +43 -0
- package/dist/esm/models/UpdateCanvasRequest.d.ts +6 -0
- package/dist/esm/models/UpdateCanvasRequest.js +2 -0
- package/dist/esm/models/UpdateWidgetRequest.d.ts +12 -0
- package/dist/esm/models/UpdateWidgetRequest.js +5 -0
- package/dist/esm/models/UsersSendFeedbackPost200Response.d.ts +38 -0
- package/dist/esm/models/{RollbackComponent200Response.js → UsersSendFeedbackPost200Response.js} +8 -8
- package/dist/esm/models/index.d.ts +24 -24
- package/dist/esm/models/index.js +24 -24
- package/dist/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
- package/dist/models/AgentModelsGet200ResponseModelsInner.js +2 -0
- package/dist/models/Canvas.d.ts +6 -0
- package/dist/models/Canvas.js +2 -0
- package/dist/models/CreateCanvasRequest.d.ts +6 -0
- package/dist/models/CreateCanvasRequest.js +2 -0
- package/dist/models/ErrorResponse.d.ts +12 -12
- package/dist/models/ErrorResponse.js +4 -4
- package/dist/models/GetCompositionsBatch200Response.d.ts +3 -3
- package/dist/models/GetCompositionsBatch200Response.js +3 -3
- package/dist/models/GetWidgetsBatch200Response.d.ts +3 -3
- package/dist/models/GetWidgetsBatch200Response.js +3 -3
- package/dist/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/models/GetWidgetsBatch200ResponseErrorsInner.js +50 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +49 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +49 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.js +50 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +48 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.js +48 -0
- package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
- package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +50 -0
- package/dist/models/UpdateCanvasRequest.d.ts +6 -0
- package/dist/models/UpdateCanvasRequest.js +2 -0
- package/dist/models/UpdateWidgetRequest.d.ts +12 -0
- package/dist/models/UpdateWidgetRequest.js +5 -0
- package/dist/models/UsersSendFeedbackPost200Response.d.ts +38 -0
- package/dist/models/UsersSendFeedbackPost200Response.js +50 -0
- package/dist/models/index.d.ts +24 -24
- package/dist/models/index.js +24 -24
- package/package.json +1 -1
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -42
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -42
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -41
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -41
- package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
- package/dist/esm/models/LoginUser200Response.d.ts +0 -38
- package/dist/esm/models/LoginUser200Response.js +0 -43
- package/dist/esm/models/RollbackComponent200Response.d.ts +0 -38
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -49
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -58
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -49
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -50
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -54
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -48
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -48
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -50
- package/dist/models/LoginUser200Response.d.ts +0 -38
- package/dist/models/LoginUser200Response.js +0 -50
- package/dist/models/RollbackComponent200Response.d.ts +0 -38
- package/dist/models/RollbackComponent200Response.js +0 -50
|
@@ -41,8 +41,12 @@ class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
43
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
-
if (this.configuration && this.configuration.
|
|
45
|
-
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
const token = this.configuration.accessToken;
|
|
46
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
47
|
+
if (tokenString) {
|
|
48
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
const response = yield this.request({
|
|
48
52
|
path: `/managed-users`,
|
|
@@ -75,8 +79,12 @@ class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
75
79
|
}
|
|
76
80
|
const queryParameters = {};
|
|
77
81
|
const headerParameters = {};
|
|
78
|
-
if (this.configuration && this.configuration.
|
|
79
|
-
|
|
82
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
83
|
+
const token = this.configuration.accessToken;
|
|
84
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
85
|
+
if (tokenString) {
|
|
86
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
87
|
+
}
|
|
80
88
|
}
|
|
81
89
|
const response = yield this.request({
|
|
82
90
|
path: `/managed-users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -113,8 +121,12 @@ class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
113
121
|
queryParameters['sort'] = requestParameters['sort'];
|
|
114
122
|
}
|
|
115
123
|
const headerParameters = {};
|
|
116
|
-
if (this.configuration && this.configuration.
|
|
117
|
-
|
|
124
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
125
|
+
const token = this.configuration.accessToken;
|
|
126
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
127
|
+
if (tokenString) {
|
|
128
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
129
|
+
}
|
|
118
130
|
}
|
|
119
131
|
const response = yield this.request({
|
|
120
132
|
path: `/managed-users`,
|
|
@@ -146,8 +158,12 @@ class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
146
158
|
}
|
|
147
159
|
const queryParameters = {};
|
|
148
160
|
const headerParameters = {};
|
|
149
|
-
if (this.configuration && this.configuration.
|
|
150
|
-
|
|
161
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
162
|
+
const token = this.configuration.accessToken;
|
|
163
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
164
|
+
if (tokenString) {
|
|
165
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
166
|
+
}
|
|
151
167
|
}
|
|
152
168
|
const response = yield this.request({
|
|
153
169
|
path: `/managed-users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -188,8 +204,12 @@ class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
188
204
|
queryParameters['sort'] = requestParameters['sort'];
|
|
189
205
|
}
|
|
190
206
|
const headerParameters = {};
|
|
191
|
-
if (this.configuration && this.configuration.
|
|
192
|
-
|
|
207
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
208
|
+
const token = this.configuration.accessToken;
|
|
209
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
210
|
+
if (tokenString) {
|
|
211
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
212
|
+
}
|
|
193
213
|
}
|
|
194
214
|
const response = yield this.request({
|
|
195
215
|
path: `/users/{managerId}/managed-users`.replace(`{${"managerId"}}`, encodeURIComponent(String(requestParameters['managerId']))),
|
|
@@ -225,8 +245,12 @@ class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
225
245
|
const queryParameters = {};
|
|
226
246
|
const headerParameters = {};
|
|
227
247
|
headerParameters['Content-Type'] = 'application/json';
|
|
228
|
-
if (this.configuration && this.configuration.
|
|
229
|
-
|
|
248
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
249
|
+
const token = this.configuration.accessToken;
|
|
250
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
251
|
+
if (tokenString) {
|
|
252
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
253
|
+
}
|
|
230
254
|
}
|
|
231
255
|
const response = yield this.request({
|
|
232
256
|
path: `/managed-users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
package/dist/apis/MessagesApi.js
CHANGED
|
@@ -44,8 +44,12 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
44
44
|
const queryParameters = {};
|
|
45
45
|
const headerParameters = {};
|
|
46
46
|
headerParameters['Content-Type'] = 'application/json';
|
|
47
|
-
if (this.configuration && this.configuration.
|
|
48
|
-
|
|
47
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
48
|
+
const token = this.configuration.accessToken;
|
|
49
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
50
|
+
if (tokenString) {
|
|
51
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
const response = yield this.request({
|
|
51
55
|
path: `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
@@ -80,8 +84,12 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
80
84
|
}
|
|
81
85
|
const queryParameters = {};
|
|
82
86
|
const headerParameters = {};
|
|
83
|
-
if (this.configuration && this.configuration.
|
|
84
|
-
|
|
87
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
88
|
+
const token = this.configuration.accessToken;
|
|
89
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
90
|
+
if (tokenString) {
|
|
91
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
92
|
+
}
|
|
85
93
|
}
|
|
86
94
|
const response = yield this.request({
|
|
87
95
|
path: `/conversations/{conversationId}/messages/{messageId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
@@ -115,8 +123,12 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
115
123
|
}
|
|
116
124
|
const queryParameters = {};
|
|
117
125
|
const headerParameters = {};
|
|
118
|
-
if (this.configuration && this.configuration.
|
|
119
|
-
|
|
126
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
127
|
+
const token = this.configuration.accessToken;
|
|
128
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
129
|
+
if (tokenString) {
|
|
130
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
131
|
+
}
|
|
120
132
|
}
|
|
121
133
|
const response = yield this.request({
|
|
122
134
|
path: `/conversations/{conversationId}/messages/{messageId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
@@ -156,8 +168,12 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
156
168
|
queryParameters['sort'] = requestParameters['sort'];
|
|
157
169
|
}
|
|
158
170
|
const headerParameters = {};
|
|
159
|
-
if (this.configuration && this.configuration.
|
|
160
|
-
|
|
171
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
172
|
+
const token = this.configuration.accessToken;
|
|
173
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
174
|
+
if (tokenString) {
|
|
175
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
176
|
+
}
|
|
161
177
|
}
|
|
162
178
|
const response = yield this.request({
|
|
163
179
|
path: `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
@@ -192,8 +208,12 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
192
208
|
const queryParameters = {};
|
|
193
209
|
const headerParameters = {};
|
|
194
210
|
headerParameters['Content-Type'] = 'application/json';
|
|
195
|
-
if (this.configuration && this.configuration.
|
|
196
|
-
|
|
211
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
212
|
+
const token = this.configuration.accessToken;
|
|
213
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
214
|
+
if (tokenString) {
|
|
215
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
216
|
+
}
|
|
197
217
|
}
|
|
198
218
|
const response = yield this.request({
|
|
199
219
|
path: `/conversations/{conversationId}/messages/restore-checkpoint`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
@@ -232,8 +252,12 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
232
252
|
const queryParameters = {};
|
|
233
253
|
const headerParameters = {};
|
|
234
254
|
headerParameters['Content-Type'] = 'application/json';
|
|
235
|
-
if (this.configuration && this.configuration.
|
|
236
|
-
|
|
255
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
256
|
+
const token = this.configuration.accessToken;
|
|
257
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
258
|
+
if (tokenString) {
|
|
259
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
260
|
+
}
|
|
237
261
|
}
|
|
238
262
|
const response = yield this.request({
|
|
239
263
|
path: `/conversations/{conversationId}/messages/{messageId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { GetOrganizationActivities200Response, GetOrganizationActivityStats200Response, LogOrganizationActivity201Response, LogOrganizationActivityRequest, UsersSendFeedbackPost200Response } from '../models/index';
|
|
14
|
+
export interface DeleteOrganizationActivityRequest {
|
|
15
|
+
orgId: string;
|
|
16
|
+
activityId: number;
|
|
17
|
+
}
|
|
18
|
+
export interface GetOrganizationActivitiesRequest {
|
|
19
|
+
orgId: string;
|
|
20
|
+
limit?: number;
|
|
21
|
+
offset?: number;
|
|
22
|
+
category?: GetOrganizationActivitiesCategoryEnum;
|
|
23
|
+
userId?: number;
|
|
24
|
+
daysBack?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface GetOrganizationActivityStatsRequest {
|
|
27
|
+
orgId: string;
|
|
28
|
+
daysBack?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface LogOrganizationActivityOperationRequest {
|
|
31
|
+
orgId: string;
|
|
32
|
+
logOrganizationActivityRequest: LogOrganizationActivityRequest;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export declare class OrganizationActivitiesApi extends runtime.BaseAPI {
|
|
38
|
+
/**
|
|
39
|
+
* Deletes an activity from the organization history. Only organization owners can delete activities.
|
|
40
|
+
* Delete Organization Activity
|
|
41
|
+
*/
|
|
42
|
+
deleteOrganizationActivityRaw(requestParameters: DeleteOrganizationActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersSendFeedbackPost200Response>>;
|
|
43
|
+
/**
|
|
44
|
+
* Deletes an activity from the organization history. Only organization owners can delete activities.
|
|
45
|
+
* Delete Organization Activity
|
|
46
|
+
*/
|
|
47
|
+
deleteOrganizationActivity(requestParameters: DeleteOrganizationActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsersSendFeedbackPost200Response>;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves the activity history for an organization. Shows public activities visible to all organization members.
|
|
50
|
+
* Get Organization Activities
|
|
51
|
+
*/
|
|
52
|
+
getOrganizationActivitiesRaw(requestParameters: GetOrganizationActivitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetOrganizationActivities200Response>>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves the activity history for an organization. Shows public activities visible to all organization members.
|
|
55
|
+
* Get Organization Activities
|
|
56
|
+
*/
|
|
57
|
+
getOrganizationActivities(requestParameters: GetOrganizationActivitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetOrganizationActivities200Response>;
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves activity statistics and trends for an organization. Useful for dashboard displays and analytics.
|
|
60
|
+
* Get Organization Activity Statistics
|
|
61
|
+
*/
|
|
62
|
+
getOrganizationActivityStatsRaw(requestParameters: GetOrganizationActivityStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetOrganizationActivityStats200Response>>;
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves activity statistics and trends for an organization. Useful for dashboard displays and analytics.
|
|
65
|
+
* Get Organization Activity Statistics
|
|
66
|
+
*/
|
|
67
|
+
getOrganizationActivityStats(requestParameters: GetOrganizationActivityStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetOrganizationActivityStats200Response>;
|
|
68
|
+
/**
|
|
69
|
+
* Logs a new activity for the organization. Used internally by the system to track user actions.
|
|
70
|
+
* Log Organization Activity
|
|
71
|
+
*/
|
|
72
|
+
logOrganizationActivityRaw(requestParameters: LogOrganizationActivityOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LogOrganizationActivity201Response>>;
|
|
73
|
+
/**
|
|
74
|
+
* Logs a new activity for the organization. Used internally by the system to track user actions.
|
|
75
|
+
* Log Organization Activity
|
|
76
|
+
*/
|
|
77
|
+
logOrganizationActivity(requestParameters: LogOrganizationActivityOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LogOrganizationActivity201Response>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const GetOrganizationActivitiesCategoryEnum: {
|
|
83
|
+
readonly Widget: "widget";
|
|
84
|
+
readonly Composition: "composition";
|
|
85
|
+
readonly Project: "project";
|
|
86
|
+
readonly Organization: "organization";
|
|
87
|
+
readonly Collaboration: "collaboration";
|
|
88
|
+
readonly File: "file";
|
|
89
|
+
readonly Integration: "integration";
|
|
90
|
+
readonly Publishing: "publishing";
|
|
91
|
+
readonly Billing: "billing";
|
|
92
|
+
};
|
|
93
|
+
export type GetOrganizationActivitiesCategoryEnum = typeof GetOrganizationActivitiesCategoryEnum[keyof typeof GetOrganizationActivitiesCategoryEnum];
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.GetOrganizationActivitiesCategoryEnum = exports.OrganizationActivitiesApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class OrganizationActivitiesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Deletes an activity from the organization history. Only organization owners can delete activities.
|
|
34
|
+
* Delete Organization Activity
|
|
35
|
+
*/
|
|
36
|
+
deleteOrganizationActivityRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['orgId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling deleteOrganizationActivity().');
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['activityId'] == null) {
|
|
42
|
+
throw new runtime.RequiredError('activityId', 'Required parameter "activityId" was null or undefined when calling deleteOrganizationActivity().');
|
|
43
|
+
}
|
|
44
|
+
const queryParameters = {};
|
|
45
|
+
const headerParameters = {};
|
|
46
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
47
|
+
const token = this.configuration.accessToken;
|
|
48
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
49
|
+
if (tokenString) {
|
|
50
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const response = yield this.request({
|
|
54
|
+
path: `/organizations/{orgId}/activities/{activityId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters['activityId']))),
|
|
55
|
+
method: 'DELETE',
|
|
56
|
+
headers: headerParameters,
|
|
57
|
+
query: queryParameters,
|
|
58
|
+
}, initOverrides);
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Deletes an activity from the organization history. Only organization owners can delete activities.
|
|
64
|
+
* Delete Organization Activity
|
|
65
|
+
*/
|
|
66
|
+
deleteOrganizationActivity(requestParameters, initOverrides) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const response = yield this.deleteOrganizationActivityRaw(requestParameters, initOverrides);
|
|
69
|
+
return yield response.value();
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Retrieves the activity history for an organization. Shows public activities visible to all organization members.
|
|
74
|
+
* Get Organization Activities
|
|
75
|
+
*/
|
|
76
|
+
getOrganizationActivitiesRaw(requestParameters, initOverrides) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
if (requestParameters['orgId'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling getOrganizationActivities().');
|
|
80
|
+
}
|
|
81
|
+
const queryParameters = {};
|
|
82
|
+
if (requestParameters['limit'] != null) {
|
|
83
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
84
|
+
}
|
|
85
|
+
if (requestParameters['offset'] != null) {
|
|
86
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
87
|
+
}
|
|
88
|
+
if (requestParameters['category'] != null) {
|
|
89
|
+
queryParameters['category'] = requestParameters['category'];
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['userId'] != null) {
|
|
92
|
+
queryParameters['userId'] = requestParameters['userId'];
|
|
93
|
+
}
|
|
94
|
+
if (requestParameters['daysBack'] != null) {
|
|
95
|
+
queryParameters['daysBack'] = requestParameters['daysBack'];
|
|
96
|
+
}
|
|
97
|
+
const headerParameters = {};
|
|
98
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
99
|
+
const token = this.configuration.accessToken;
|
|
100
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
101
|
+
if (tokenString) {
|
|
102
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const response = yield this.request({
|
|
106
|
+
path: `/organizations/{orgId}/activities`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
|
|
107
|
+
method: 'GET',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
}, initOverrides);
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetOrganizationActivities200ResponseFromJSON)(jsonValue));
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Retrieves the activity history for an organization. Shows public activities visible to all organization members.
|
|
116
|
+
* Get Organization Activities
|
|
117
|
+
*/
|
|
118
|
+
getOrganizationActivities(requestParameters, initOverrides) {
|
|
119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
const response = yield this.getOrganizationActivitiesRaw(requestParameters, initOverrides);
|
|
121
|
+
return yield response.value();
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Retrieves activity statistics and trends for an organization. Useful for dashboard displays and analytics.
|
|
126
|
+
* Get Organization Activity Statistics
|
|
127
|
+
*/
|
|
128
|
+
getOrganizationActivityStatsRaw(requestParameters, initOverrides) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
if (requestParameters['orgId'] == null) {
|
|
131
|
+
throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling getOrganizationActivityStats().');
|
|
132
|
+
}
|
|
133
|
+
const queryParameters = {};
|
|
134
|
+
if (requestParameters['daysBack'] != null) {
|
|
135
|
+
queryParameters['daysBack'] = requestParameters['daysBack'];
|
|
136
|
+
}
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
139
|
+
const token = this.configuration.accessToken;
|
|
140
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
141
|
+
if (tokenString) {
|
|
142
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const response = yield this.request({
|
|
146
|
+
path: `/organizations/{orgId}/activities/stats`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
|
|
147
|
+
method: 'GET',
|
|
148
|
+
headers: headerParameters,
|
|
149
|
+
query: queryParameters,
|
|
150
|
+
}, initOverrides);
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetOrganizationActivityStats200ResponseFromJSON)(jsonValue));
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Retrieves activity statistics and trends for an organization. Useful for dashboard displays and analytics.
|
|
156
|
+
* Get Organization Activity Statistics
|
|
157
|
+
*/
|
|
158
|
+
getOrganizationActivityStats(requestParameters, initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
const response = yield this.getOrganizationActivityStatsRaw(requestParameters, initOverrides);
|
|
161
|
+
return yield response.value();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Logs a new activity for the organization. Used internally by the system to track user actions.
|
|
166
|
+
* Log Organization Activity
|
|
167
|
+
*/
|
|
168
|
+
logOrganizationActivityRaw(requestParameters, initOverrides) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
if (requestParameters['orgId'] == null) {
|
|
171
|
+
throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling logOrganizationActivity().');
|
|
172
|
+
}
|
|
173
|
+
if (requestParameters['logOrganizationActivityRequest'] == null) {
|
|
174
|
+
throw new runtime.RequiredError('logOrganizationActivityRequest', 'Required parameter "logOrganizationActivityRequest" was null or undefined when calling logOrganizationActivity().');
|
|
175
|
+
}
|
|
176
|
+
const queryParameters = {};
|
|
177
|
+
const headerParameters = {};
|
|
178
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
179
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
180
|
+
const token = this.configuration.accessToken;
|
|
181
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
182
|
+
if (tokenString) {
|
|
183
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
const response = yield this.request({
|
|
187
|
+
path: `/organizations/{orgId}/activities`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
|
|
188
|
+
method: 'POST',
|
|
189
|
+
headers: headerParameters,
|
|
190
|
+
query: queryParameters,
|
|
191
|
+
body: (0, index_1.LogOrganizationActivityRequestToJSON)(requestParameters['logOrganizationActivityRequest']),
|
|
192
|
+
}, initOverrides);
|
|
193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LogOrganizationActivity201ResponseFromJSON)(jsonValue));
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Logs a new activity for the organization. Used internally by the system to track user actions.
|
|
198
|
+
* Log Organization Activity
|
|
199
|
+
*/
|
|
200
|
+
logOrganizationActivity(requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
const response = yield this.logOrganizationActivityRaw(requestParameters, initOverrides);
|
|
203
|
+
return yield response.value();
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
exports.OrganizationActivitiesApi = OrganizationActivitiesApi;
|
|
208
|
+
/**
|
|
209
|
+
* @export
|
|
210
|
+
*/
|
|
211
|
+
exports.GetOrganizationActivitiesCategoryEnum = {
|
|
212
|
+
Widget: 'widget',
|
|
213
|
+
Composition: 'composition',
|
|
214
|
+
Project: 'project',
|
|
215
|
+
Organization: 'organization',
|
|
216
|
+
Collaboration: 'collaboration',
|
|
217
|
+
File: 'file',
|
|
218
|
+
Integration: 'integration',
|
|
219
|
+
Publishing: 'publishing',
|
|
220
|
+
Billing: 'billing'
|
|
221
|
+
};
|