@connectedxm/admin-sdk 7.10.0 → 7.11.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/README.md CHANGED
@@ -967,9 +967,9 @@ Class | Method | HTTP request | Description
967
967
  *OrganizationIntegrationsApi* | [**getIntegration**](docs/OrganizationIntegrationsApi.md#getintegration) | **GET** /organization/integrations/{integrationId} | Get an organization integration
968
968
  *OrganizationIntegrationsApi* | [**getIntegrations**](docs/OrganizationIntegrationsApi.md#getintegrations) | **GET** /organization/integrations | List an organization\'s integrations
969
969
  *OrganizationIntegrationsApi* | [**updateIntegration**](docs/OrganizationIntegrationsApi.md#updateintegration) | **PUT** /organization/integrations/{integrationId} | Update an organization integration
970
- *OrganizationLanguageoverridesApi* | [**deleteOrganizationLanguageOverride**](docs/OrganizationLanguageoverridesApi.md#deleteorganizationlanguageoverride) | **DELETE** /organization/language-overrides/{locale} | Delete a language override
970
+ *OrganizationLanguageoverridesApi* | [**deleteOrganizationLanguageOverride**](docs/OrganizationLanguageoverridesApi.md#deleteorganizationlanguageoverride) | **DELETE** /organization/language-overrides | Delete a language override
971
971
  *OrganizationLanguageoverridesApi* | [**getOrganizationLanguageOverrides**](docs/OrganizationLanguageoverridesApi.md#getorganizationlanguageoverrides) | **GET** /organization/language-overrides | List an organization\'s language overrides
972
- *OrganizationLanguageoverridesApi* | [**upsertOrganizationLanguageOverride**](docs/OrganizationLanguageoverridesApi.md#upsertorganizationlanguageoverride) | **PUT** /organization/language-overrides/{locale} | Create or update a language override
972
+ *OrganizationLanguageoverridesApi* | [**upsertOrganizationLanguageOverride**](docs/OrganizationLanguageoverridesApi.md#upsertorganizationlanguageoverride) | **PUT** /organization/language-overrides | Create or update a language override
973
973
  *OrganizationModulesApi* | [**getOrganizationModule**](docs/OrganizationModulesApi.md#getorganizationmodule) | **GET** /organization/modules/{moduleType} | Get an organization module\'s configuration
974
974
  *OrganizationModulesApi* | [**getOrganizationModules**](docs/OrganizationModulesApi.md#getorganizationmodules) | **GET** /organization/modules | List an organization\'s module configurations
975
975
  *OrganizationModulesApi* | [**updateOrganizationModule**](docs/OrganizationModulesApi.md#updateorganizationmodule) | **PUT** /organization/modules/{moduleType} | Update an organization module\'s settings
package/api.ts CHANGED
@@ -11323,15 +11323,14 @@ export interface OrganizationAllOfOAuth {
11323
11323
  'id': string;
11324
11324
  }
11325
11325
  export interface OrganizationLanguageOverride {
11326
- 'locale': string;
11327
11326
  'key': string;
11328
- 'value': string;
11327
+ 'values': { [key: string]: any; };
11329
11328
  'createdAt': string;
11330
11329
  'updatedAt': string;
11331
11330
  }
11332
11331
  export interface OrganizationLanguageOverrideUpsertInputs {
11333
11332
  'key': string;
11334
- 'value': string;
11333
+ 'values': { [key: string]: any; };
11335
11334
  }
11336
11335
  export interface OrganizationMembership {
11337
11336
  'id': string;
@@ -120041,20 +120040,16 @@ export class OrganizationIntegrationsApi extends BaseAPI {
120041
120040
  export const OrganizationLanguageoverridesApiAxiosParamCreator = function (configuration?: Configuration) {
120042
120041
  return {
120043
120042
  /**
120044
- * Deletes the organization\'s i18n string override for the given locale and key (sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
120043
+ * Deletes the organization\'s i18n string override for the given key across all locales (key sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
120045
120044
  * @summary Delete a language override
120046
- * @param {string} locale The locale identifier
120047
120045
  * @param {string} key Filter by key
120048
120046
  * @param {*} [options] Override http request option.
120049
120047
  * @throws {RequiredError}
120050
120048
  */
120051
- deleteOrganizationLanguageOverride: async (locale: string, key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120052
- // verify required parameter 'locale' is not null or undefined
120053
- assertParamExists('deleteOrganizationLanguageOverride', 'locale', locale)
120049
+ deleteOrganizationLanguageOverride: async (key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120054
120050
  // verify required parameter 'key' is not null or undefined
120055
120051
  assertParamExists('deleteOrganizationLanguageOverride', 'key', key)
120056
- const localVarPath = `/organization/language-overrides/{locale}`
120057
- .replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
120052
+ const localVarPath = `/organization/language-overrides`;
120058
120053
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
120059
120054
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120060
120055
  let baseOptions;
@@ -120088,9 +120083,8 @@ export const OrganizationLanguageoverridesApiAxiosParamCreator = function (confi
120088
120083
  };
120089
120084
  },
120090
120085
  /**
120091
- * Returns a paginated list of the organization\'s i18n string overrides, optionally filtered by locale and searchable by key or value; requires org read permission.
120086
+ * Returns a paginated list of the organization\'s i18n string overrides grouped by key, each with its per-locale values; searchable by key. Requires org read permission.
120092
120087
  * @summary List an organization\'s language overrides
120093
- * @param {string} [locale] Filter by locale
120094
120088
  * @param {number} [page] Page number
120095
120089
  * @param {number} [pageSize] Number of items per page
120096
120090
  * @param {string} [orderBy] Field to order by
@@ -120098,7 +120092,7 @@ export const OrganizationLanguageoverridesApiAxiosParamCreator = function (confi
120098
120092
  * @param {*} [options] Override http request option.
120099
120093
  * @throws {RequiredError}
120100
120094
  */
120101
- getOrganizationLanguageOverrides: async (locale?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120095
+ getOrganizationLanguageOverrides: async (page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120102
120096
  const localVarPath = `/organization/language-overrides`;
120103
120097
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
120104
120098
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -120117,10 +120111,6 @@ export const OrganizationLanguageoverridesApiAxiosParamCreator = function (confi
120117
120111
  // authentication OrganizationId required
120118
120112
  await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120119
120113
 
120120
- if (locale !== undefined) {
120121
- localVarQueryParameter['locale'] = locale;
120122
- }
120123
-
120124
120114
  if (page !== undefined) {
120125
120115
  localVarQueryParameter['page'] = page;
120126
120116
  }
@@ -120149,20 +120139,16 @@ export const OrganizationLanguageoverridesApiAxiosParamCreator = function (confi
120149
120139
  };
120150
120140
  },
120151
120141
  /**
120152
- * Upserts the organization\'s i18n string override for the given locale and key, requires the update org permission, and refreshes the language overrides list on success.
120142
+ * Upserts the organization\'s i18n string override for a key across all supplied locale values in a single request, requires the update org permission, and refreshes the language overrides list on success.
120153
120143
  * @summary Create or update a language override
120154
- * @param {string} locale The locale identifier
120155
120144
  * @param {OrganizationLanguageOverrideUpsertInputs} organizationLanguageOverrideUpsertInputs
120156
120145
  * @param {*} [options] Override http request option.
120157
120146
  * @throws {RequiredError}
120158
120147
  */
120159
- upsertOrganizationLanguageOverride: async (locale: string, organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120160
- // verify required parameter 'locale' is not null or undefined
120161
- assertParamExists('upsertOrganizationLanguageOverride', 'locale', locale)
120148
+ upsertOrganizationLanguageOverride: async (organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120162
120149
  // verify required parameter 'organizationLanguageOverrideUpsertInputs' is not null or undefined
120163
120150
  assertParamExists('upsertOrganizationLanguageOverride', 'organizationLanguageOverrideUpsertInputs', organizationLanguageOverrideUpsertInputs)
120164
- const localVarPath = `/organization/language-overrides/{locale}`
120165
- .replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
120151
+ const localVarPath = `/organization/language-overrides`;
120166
120152
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
120167
120153
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120168
120154
  let baseOptions;
@@ -120203,23 +120189,21 @@ export const OrganizationLanguageoverridesApiFp = function(configuration?: Confi
120203
120189
  const localVarAxiosParamCreator = OrganizationLanguageoverridesApiAxiosParamCreator(configuration)
120204
120190
  return {
120205
120191
  /**
120206
- * Deletes the organization\'s i18n string override for the given locale and key (sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
120192
+ * Deletes the organization\'s i18n string override for the given key across all locales (key sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
120207
120193
  * @summary Delete a language override
120208
- * @param {string} locale The locale identifier
120209
120194
  * @param {string} key Filter by key
120210
120195
  * @param {*} [options] Override http request option.
120211
120196
  * @throws {RequiredError}
120212
120197
  */
120213
- async deleteOrganizationLanguageOverride(locale: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
120214
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationLanguageOverride(locale, key, options);
120198
+ async deleteOrganizationLanguageOverride(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
120199
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationLanguageOverride(key, options);
120215
120200
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120216
120201
  const localVarOperationServerBasePath = operationServerMap['OrganizationLanguageoverridesApi.deleteOrganizationLanguageOverride']?.[localVarOperationServerIndex]?.url;
120217
120202
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120218
120203
  },
120219
120204
  /**
120220
- * Returns a paginated list of the organization\'s i18n string overrides, optionally filtered by locale and searchable by key or value; requires org read permission.
120205
+ * Returns a paginated list of the organization\'s i18n string overrides grouped by key, each with its per-locale values; searchable by key. Requires org read permission.
120221
120206
  * @summary List an organization\'s language overrides
120222
- * @param {string} [locale] Filter by locale
120223
120207
  * @param {number} [page] Page number
120224
120208
  * @param {number} [pageSize] Number of items per page
120225
120209
  * @param {string} [orderBy] Field to order by
@@ -120227,22 +120211,21 @@ export const OrganizationLanguageoverridesApiFp = function(configuration?: Confi
120227
120211
  * @param {*} [options] Override http request option.
120228
120212
  * @throws {RequiredError}
120229
120213
  */
120230
- async getOrganizationLanguageOverrides(locale?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationLanguageOverrides200Response>> {
120231
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationLanguageOverrides(locale, page, pageSize, orderBy, search, options);
120214
+ async getOrganizationLanguageOverrides(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationLanguageOverrides200Response>> {
120215
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationLanguageOverrides(page, pageSize, orderBy, search, options);
120232
120216
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120233
120217
  const localVarOperationServerBasePath = operationServerMap['OrganizationLanguageoverridesApi.getOrganizationLanguageOverrides']?.[localVarOperationServerIndex]?.url;
120234
120218
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120235
120219
  },
120236
120220
  /**
120237
- * Upserts the organization\'s i18n string override for the given locale and key, requires the update org permission, and refreshes the language overrides list on success.
120221
+ * Upserts the organization\'s i18n string override for a key across all supplied locale values in a single request, requires the update org permission, and refreshes the language overrides list on success.
120238
120222
  * @summary Create or update a language override
120239
- * @param {string} locale The locale identifier
120240
120223
  * @param {OrganizationLanguageOverrideUpsertInputs} organizationLanguageOverrideUpsertInputs
120241
120224
  * @param {*} [options] Override http request option.
120242
120225
  * @throws {RequiredError}
120243
120226
  */
120244
- async upsertOrganizationLanguageOverride(locale: string, organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
120245
- const localVarAxiosArgs = await localVarAxiosParamCreator.upsertOrganizationLanguageOverride(locale, organizationLanguageOverrideUpsertInputs, options);
120227
+ async upsertOrganizationLanguageOverride(organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
120228
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upsertOrganizationLanguageOverride(organizationLanguageOverrideUpsertInputs, options);
120246
120229
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120247
120230
  const localVarOperationServerBasePath = operationServerMap['OrganizationLanguageoverridesApi.upsertOrganizationLanguageOverride']?.[localVarOperationServerIndex]?.url;
120248
120231
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -120257,34 +120240,34 @@ export const OrganizationLanguageoverridesApiFactory = function (configuration?:
120257
120240
  const localVarFp = OrganizationLanguageoverridesApiFp(configuration)
120258
120241
  return {
120259
120242
  /**
120260
- * Deletes the organization\'s i18n string override for the given locale and key (sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
120243
+ * Deletes the organization\'s i18n string override for the given key across all locales (key sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
120261
120244
  * @summary Delete a language override
120262
120245
  * @param {OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest} requestParameters Request parameters.
120263
120246
  * @param {*} [options] Override http request option.
120264
120247
  * @throws {RequiredError}
120265
120248
  */
120266
120249
  deleteOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
120267
- return localVarFp.deleteOrganizationLanguageOverride(requestParameters.locale, requestParameters.key, options).then((request) => request(axios, basePath));
120250
+ return localVarFp.deleteOrganizationLanguageOverride(requestParameters.key, options).then((request) => request(axios, basePath));
120268
120251
  },
120269
120252
  /**
120270
- * Returns a paginated list of the organization\'s i18n string overrides, optionally filtered by locale and searchable by key or value; requires org read permission.
120253
+ * Returns a paginated list of the organization\'s i18n string overrides grouped by key, each with its per-locale values; searchable by key. Requires org read permission.
120271
120254
  * @summary List an organization\'s language overrides
120272
120255
  * @param {OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest} requestParameters Request parameters.
120273
120256
  * @param {*} [options] Override http request option.
120274
120257
  * @throws {RequiredError}
120275
120258
  */
120276
120259
  getOrganizationLanguageOverrides(requestParameters: OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetOrganizationLanguageOverrides200Response> {
120277
- return localVarFp.getOrganizationLanguageOverrides(requestParameters.locale, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
120260
+ return localVarFp.getOrganizationLanguageOverrides(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
120278
120261
  },
120279
120262
  /**
120280
- * Upserts the organization\'s i18n string override for the given locale and key, requires the update org permission, and refreshes the language overrides list on success.
120263
+ * Upserts the organization\'s i18n string override for a key across all supplied locale values in a single request, requires the update org permission, and refreshes the language overrides list on success.
120281
120264
  * @summary Create or update a language override
120282
120265
  * @param {OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest} requestParameters Request parameters.
120283
120266
  * @param {*} [options] Override http request option.
120284
120267
  * @throws {RequiredError}
120285
120268
  */
120286
120269
  upsertOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
120287
- return localVarFp.upsertOrganizationLanguageOverride(requestParameters.locale, requestParameters.organizationLanguageOverrideUpsertInputs, options).then((request) => request(axios, basePath));
120270
+ return localVarFp.upsertOrganizationLanguageOverride(requestParameters.organizationLanguageOverrideUpsertInputs, options).then((request) => request(axios, basePath));
120288
120271
  },
120289
120272
  };
120290
120273
  };
@@ -120293,11 +120276,6 @@ export const OrganizationLanguageoverridesApiFactory = function (configuration?:
120293
120276
  * Request parameters for deleteOrganizationLanguageOverride operation in OrganizationLanguageoverridesApi.
120294
120277
  */
120295
120278
  export interface OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest {
120296
- /**
120297
- * The locale identifier
120298
- */
120299
- readonly locale: string
120300
-
120301
120279
  /**
120302
120280
  * Filter by key
120303
120281
  */
@@ -120308,11 +120286,6 @@ export interface OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverr
120308
120286
  * Request parameters for getOrganizationLanguageOverrides operation in OrganizationLanguageoverridesApi.
120309
120287
  */
120310
120288
  export interface OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest {
120311
- /**
120312
- * Filter by locale
120313
- */
120314
- readonly locale?: string
120315
-
120316
120289
  /**
120317
120290
  * Page number
120318
120291
  */
@@ -120338,11 +120311,6 @@ export interface OrganizationLanguageoverridesApiGetOrganizationLanguageOverride
120338
120311
  * Request parameters for upsertOrganizationLanguageOverride operation in OrganizationLanguageoverridesApi.
120339
120312
  */
120340
120313
  export interface OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest {
120341
- /**
120342
- * The locale identifier
120343
- */
120344
- readonly locale: string
120345
-
120346
120314
  readonly organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs
120347
120315
  }
120348
120316
 
@@ -120351,36 +120319,36 @@ export interface OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverr
120351
120319
  */
120352
120320
  export class OrganizationLanguageoverridesApi extends BaseAPI {
120353
120321
  /**
120354
- * Deletes the organization\'s i18n string override for the given locale and key (sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
120322
+ * Deletes the organization\'s i18n string override for the given key across all locales (key sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
120355
120323
  * @summary Delete a language override
120356
120324
  * @param {OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest} requestParameters Request parameters.
120357
120325
  * @param {*} [options] Override http request option.
120358
120326
  * @throws {RequiredError}
120359
120327
  */
120360
120328
  public deleteOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig) {
120361
- return OrganizationLanguageoverridesApiFp(this.configuration).deleteOrganizationLanguageOverride(requestParameters.locale, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
120329
+ return OrganizationLanguageoverridesApiFp(this.configuration).deleteOrganizationLanguageOverride(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
120362
120330
  }
120363
120331
 
120364
120332
  /**
120365
- * Returns a paginated list of the organization\'s i18n string overrides, optionally filtered by locale and searchable by key or value; requires org read permission.
120333
+ * Returns a paginated list of the organization\'s i18n string overrides grouped by key, each with its per-locale values; searchable by key. Requires org read permission.
120366
120334
  * @summary List an organization\'s language overrides
120367
120335
  * @param {OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest} requestParameters Request parameters.
120368
120336
  * @param {*} [options] Override http request option.
120369
120337
  * @throws {RequiredError}
120370
120338
  */
120371
120339
  public getOrganizationLanguageOverrides(requestParameters: OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest = {}, options?: RawAxiosRequestConfig) {
120372
- return OrganizationLanguageoverridesApiFp(this.configuration).getOrganizationLanguageOverrides(requestParameters.locale, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
120340
+ return OrganizationLanguageoverridesApiFp(this.configuration).getOrganizationLanguageOverrides(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
120373
120341
  }
120374
120342
 
120375
120343
  /**
120376
- * Upserts the organization\'s i18n string override for the given locale and key, requires the update org permission, and refreshes the language overrides list on success.
120344
+ * Upserts the organization\'s i18n string override for a key across all supplied locale values in a single request, requires the update org permission, and refreshes the language overrides list on success.
120377
120345
  * @summary Create or update a language override
120378
120346
  * @param {OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest} requestParameters Request parameters.
120379
120347
  * @param {*} [options] Override http request option.
120380
120348
  * @throws {RequiredError}
120381
120349
  */
120382
120350
  public upsertOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig) {
120383
- return OrganizationLanguageoverridesApiFp(this.configuration).upsertOrganizationLanguageOverride(requestParameters.locale, requestParameters.organizationLanguageOverrideUpsertInputs, options).then((request) => request(this.axios, this.basePath));
120351
+ return OrganizationLanguageoverridesApiFp(this.configuration).upsertOrganizationLanguageOverride(requestParameters.organizationLanguageOverrideUpsertInputs, options).then((request) => request(this.axios, this.basePath));
120384
120352
  }
120385
120353
  }
120386
120354
 
package/dist/api.d.ts CHANGED
@@ -10014,15 +10014,18 @@ export interface OrganizationAllOfOAuth {
10014
10014
  'id': string;
10015
10015
  }
10016
10016
  export interface OrganizationLanguageOverride {
10017
- 'locale': string;
10018
10017
  'key': string;
10019
- 'value': string;
10018
+ 'values': {
10019
+ [key: string]: any;
10020
+ };
10020
10021
  'createdAt': string;
10021
10022
  'updatedAt': string;
10022
10023
  }
10023
10024
  export interface OrganizationLanguageOverrideUpsertInputs {
10024
10025
  'key': string;
10025
- 'value': string;
10026
+ 'values': {
10027
+ [key: string]: any;
10028
+ };
10026
10029
  }
10027
10030
  export interface OrganizationMembership {
10028
10031
  'id': string;
@@ -66416,18 +66419,16 @@ export declare class OrganizationIntegrationsApi extends BaseAPI {
66416
66419
  */
66417
66420
  export declare const OrganizationLanguageoverridesApiAxiosParamCreator: (configuration?: Configuration) => {
66418
66421
  /**
66419
- * Deletes the organization\'s i18n string override for the given locale and key (sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
66422
+ * Deletes the organization\'s i18n string override for the given key across all locales (key sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
66420
66423
  * @summary Delete a language override
66421
- * @param {string} locale The locale identifier
66422
66424
  * @param {string} key Filter by key
66423
66425
  * @param {*} [options] Override http request option.
66424
66426
  * @throws {RequiredError}
66425
66427
  */
66426
- deleteOrganizationLanguageOverride: (locale: string, key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66428
+ deleteOrganizationLanguageOverride: (key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66427
66429
  /**
66428
- * Returns a paginated list of the organization\'s i18n string overrides, optionally filtered by locale and searchable by key or value; requires org read permission.
66430
+ * Returns a paginated list of the organization\'s i18n string overrides grouped by key, each with its per-locale values; searchable by key. Requires org read permission.
66429
66431
  * @summary List an organization\'s language overrides
66430
- * @param {string} [locale] Filter by locale
66431
66432
  * @param {number} [page] Page number
66432
66433
  * @param {number} [pageSize] Number of items per page
66433
66434
  * @param {string} [orderBy] Field to order by
@@ -66435,34 +66436,31 @@ export declare const OrganizationLanguageoverridesApiAxiosParamCreator: (configu
66435
66436
  * @param {*} [options] Override http request option.
66436
66437
  * @throws {RequiredError}
66437
66438
  */
66438
- getOrganizationLanguageOverrides: (locale?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66439
+ getOrganizationLanguageOverrides: (page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66439
66440
  /**
66440
- * Upserts the organization\'s i18n string override for the given locale and key, requires the update org permission, and refreshes the language overrides list on success.
66441
+ * Upserts the organization\'s i18n string override for a key across all supplied locale values in a single request, requires the update org permission, and refreshes the language overrides list on success.
66441
66442
  * @summary Create or update a language override
66442
- * @param {string} locale The locale identifier
66443
66443
  * @param {OrganizationLanguageOverrideUpsertInputs} organizationLanguageOverrideUpsertInputs
66444
66444
  * @param {*} [options] Override http request option.
66445
66445
  * @throws {RequiredError}
66446
66446
  */
66447
- upsertOrganizationLanguageOverride: (locale: string, organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66447
+ upsertOrganizationLanguageOverride: (organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66448
66448
  };
66449
66449
  /**
66450
66450
  * OrganizationLanguageoverridesApi - functional programming interface
66451
66451
  */
66452
66452
  export declare const OrganizationLanguageoverridesApiFp: (configuration?: Configuration) => {
66453
66453
  /**
66454
- * Deletes the organization\'s i18n string override for the given locale and key (sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
66454
+ * Deletes the organization\'s i18n string override for the given key across all locales (key sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
66455
66455
  * @summary Delete a language override
66456
- * @param {string} locale The locale identifier
66457
66456
  * @param {string} key Filter by key
66458
66457
  * @param {*} [options] Override http request option.
66459
66458
  * @throws {RequiredError}
66460
66459
  */
66461
- deleteOrganizationLanguageOverride(locale: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>>;
66460
+ deleteOrganizationLanguageOverride(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>>;
66462
66461
  /**
66463
- * Returns a paginated list of the organization\'s i18n string overrides, optionally filtered by locale and searchable by key or value; requires org read permission.
66462
+ * Returns a paginated list of the organization\'s i18n string overrides grouped by key, each with its per-locale values; searchable by key. Requires org read permission.
66464
66463
  * @summary List an organization\'s language overrides
66465
- * @param {string} [locale] Filter by locale
66466
66464
  * @param {number} [page] Page number
66467
66465
  * @param {number} [pageSize] Number of items per page
66468
66466
  * @param {string} [orderBy] Field to order by
@@ -66470,23 +66468,22 @@ export declare const OrganizationLanguageoverridesApiFp: (configuration?: Config
66470
66468
  * @param {*} [options] Override http request option.
66471
66469
  * @throws {RequiredError}
66472
66470
  */
66473
- getOrganizationLanguageOverrides(locale?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationLanguageOverrides200Response>>;
66471
+ getOrganizationLanguageOverrides(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationLanguageOverrides200Response>>;
66474
66472
  /**
66475
- * Upserts the organization\'s i18n string override for the given locale and key, requires the update org permission, and refreshes the language overrides list on success.
66473
+ * Upserts the organization\'s i18n string override for a key across all supplied locale values in a single request, requires the update org permission, and refreshes the language overrides list on success.
66476
66474
  * @summary Create or update a language override
66477
- * @param {string} locale The locale identifier
66478
66475
  * @param {OrganizationLanguageOverrideUpsertInputs} organizationLanguageOverrideUpsertInputs
66479
66476
  * @param {*} [options] Override http request option.
66480
66477
  * @throws {RequiredError}
66481
66478
  */
66482
- upsertOrganizationLanguageOverride(locale: string, organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>>;
66479
+ upsertOrganizationLanguageOverride(organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>>;
66483
66480
  };
66484
66481
  /**
66485
66482
  * OrganizationLanguageoverridesApi - factory interface
66486
66483
  */
66487
66484
  export declare const OrganizationLanguageoverridesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
66488
66485
  /**
66489
- * Deletes the organization\'s i18n string override for the given locale and key (sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
66486
+ * Deletes the organization\'s i18n string override for the given key across all locales (key sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
66490
66487
  * @summary Delete a language override
66491
66488
  * @param {OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest} requestParameters Request parameters.
66492
66489
  * @param {*} [options] Override http request option.
@@ -66494,7 +66491,7 @@ export declare const OrganizationLanguageoverridesApiFactory: (configuration?: C
66494
66491
  */
66495
66492
  deleteOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response>;
66496
66493
  /**
66497
- * Returns a paginated list of the organization\'s i18n string overrides, optionally filtered by locale and searchable by key or value; requires org read permission.
66494
+ * Returns a paginated list of the organization\'s i18n string overrides grouped by key, each with its per-locale values; searchable by key. Requires org read permission.
66498
66495
  * @summary List an organization\'s language overrides
66499
66496
  * @param {OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest} requestParameters Request parameters.
66500
66497
  * @param {*} [options] Override http request option.
@@ -66502,7 +66499,7 @@ export declare const OrganizationLanguageoverridesApiFactory: (configuration?: C
66502
66499
  */
66503
66500
  getOrganizationLanguageOverrides(requestParameters?: OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOrganizationLanguageOverrides200Response>;
66504
66501
  /**
66505
- * Upserts the organization\'s i18n string override for the given locale and key, requires the update org permission, and refreshes the language overrides list on success.
66502
+ * Upserts the organization\'s i18n string override for a key across all supplied locale values in a single request, requires the update org permission, and refreshes the language overrides list on success.
66506
66503
  * @summary Create or update a language override
66507
66504
  * @param {OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest} requestParameters Request parameters.
66508
66505
  * @param {*} [options] Override http request option.
@@ -66514,10 +66511,6 @@ export declare const OrganizationLanguageoverridesApiFactory: (configuration?: C
66514
66511
  * Request parameters for deleteOrganizationLanguageOverride operation in OrganizationLanguageoverridesApi.
66515
66512
  */
66516
66513
  export interface OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest {
66517
- /**
66518
- * The locale identifier
66519
- */
66520
- readonly locale: string;
66521
66514
  /**
66522
66515
  * Filter by key
66523
66516
  */
@@ -66527,10 +66520,6 @@ export interface OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverr
66527
66520
  * Request parameters for getOrganizationLanguageOverrides operation in OrganizationLanguageoverridesApi.
66528
66521
  */
66529
66522
  export interface OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest {
66530
- /**
66531
- * Filter by locale
66532
- */
66533
- readonly locale?: string;
66534
66523
  /**
66535
66524
  * Page number
66536
66525
  */
@@ -66552,10 +66541,6 @@ export interface OrganizationLanguageoverridesApiGetOrganizationLanguageOverride
66552
66541
  * Request parameters for upsertOrganizationLanguageOverride operation in OrganizationLanguageoverridesApi.
66553
66542
  */
66554
66543
  export interface OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest {
66555
- /**
66556
- * The locale identifier
66557
- */
66558
- readonly locale: string;
66559
66544
  readonly organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs;
66560
66545
  }
66561
66546
  /**
@@ -66563,7 +66548,7 @@ export interface OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverr
66563
66548
  */
66564
66549
  export declare class OrganizationLanguageoverridesApi extends BaseAPI {
66565
66550
  /**
66566
- * Deletes the organization\'s i18n string override for the given locale and key (sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
66551
+ * Deletes the organization\'s i18n string override for the given key across all locales (key sent as a query parameter since keys can contain spaces), requires the update org permission, and refreshes the language overrides list on success.
66567
66552
  * @summary Delete a language override
66568
66553
  * @param {OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest} requestParameters Request parameters.
66569
66554
  * @param {*} [options] Override http request option.
@@ -66571,7 +66556,7 @@ export declare class OrganizationLanguageoverridesApi extends BaseAPI {
66571
66556
  */
66572
66557
  deleteOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncAccounts200Response, any, {}>>;
66573
66558
  /**
66574
- * Returns a paginated list of the organization\'s i18n string overrides, optionally filtered by locale and searchable by key or value; requires org read permission.
66559
+ * Returns a paginated list of the organization\'s i18n string overrides grouped by key, each with its per-locale values; searchable by key. Requires org read permission.
66575
66560
  * @summary List an organization\'s language overrides
66576
66561
  * @param {OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest} requestParameters Request parameters.
66577
66562
  * @param {*} [options] Override http request option.
@@ -66579,7 +66564,7 @@ export declare class OrganizationLanguageoverridesApi extends BaseAPI {
66579
66564
  */
66580
66565
  getOrganizationLanguageOverrides(requestParameters?: OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationLanguageOverrides200Response, any, {}>>;
66581
66566
  /**
66582
- * Upserts the organization\'s i18n string override for the given locale and key, requires the update org permission, and refreshes the language overrides list on success.
66567
+ * Upserts the organization\'s i18n string override for a key across all supplied locale values in a single request, requires the update org permission, and refreshes the language overrides list on success.
66583
66568
  * @summary Create or update a language override
66584
66569
  * @param {OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest} requestParameters Request parameters.
66585
66570
  * @param {*} [options] Override http request option.