@connectedxm/admin-sdk 7.9.5 → 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/.openapi-generator/FILES +4 -0
- package/AdminApi.ts +3 -0
- package/README.md +6 -0
- package/api.ts +341 -0
- package/dist/AdminApi.d.ts +2 -1
- package/dist/AdminApi.js +1 -0
- package/dist/api.d.ts +181 -0
- package/dist/api.js +285 -21
- package/dist/esm/AdminApi.d.ts +2 -1
- package/dist/esm/AdminApi.js +2 -1
- package/dist/esm/api.d.ts +181 -0
- package/dist/esm/api.js +260 -0
- package/docs/GetOrganizationLanguageOverrides200Response.md +26 -0
- package/docs/OrganizationLanguageOverride.md +26 -0
- package/docs/OrganizationLanguageOverrideUpsertInputs.md +22 -0
- package/docs/OrganizationLanguageoverridesApi.md +173 -0
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -8235,6 +8235,15 @@ export interface GetOrganizationDomain200Response {
|
|
|
8235
8235
|
export declare enum GetOrganizationDomain200ResponseStatusEnum {
|
|
8236
8236
|
Ok = "ok"
|
|
8237
8237
|
}
|
|
8238
|
+
export interface GetOrganizationLanguageOverrides200Response {
|
|
8239
|
+
'status': GetOrganizationLanguageOverrides200ResponseStatusEnum;
|
|
8240
|
+
'message': string;
|
|
8241
|
+
'data': Array<OrganizationLanguageOverride>;
|
|
8242
|
+
'count'?: number;
|
|
8243
|
+
}
|
|
8244
|
+
export declare enum GetOrganizationLanguageOverrides200ResponseStatusEnum {
|
|
8245
|
+
Ok = "ok"
|
|
8246
|
+
}
|
|
8238
8247
|
export interface GetOrganizationModule200Response {
|
|
8239
8248
|
'status': GetOrganizationModule200ResponseStatusEnum;
|
|
8240
8249
|
'message': string;
|
|
@@ -10004,6 +10013,20 @@ export declare enum OrganizationActionType {
|
|
|
10004
10013
|
export interface OrganizationAllOfOAuth {
|
|
10005
10014
|
'id': string;
|
|
10006
10015
|
}
|
|
10016
|
+
export interface OrganizationLanguageOverride {
|
|
10017
|
+
'key': string;
|
|
10018
|
+
'values': {
|
|
10019
|
+
[key: string]: any;
|
|
10020
|
+
};
|
|
10021
|
+
'createdAt': string;
|
|
10022
|
+
'updatedAt': string;
|
|
10023
|
+
}
|
|
10024
|
+
export interface OrganizationLanguageOverrideUpsertInputs {
|
|
10025
|
+
'key': string;
|
|
10026
|
+
'values': {
|
|
10027
|
+
[key: string]: any;
|
|
10028
|
+
};
|
|
10029
|
+
}
|
|
10007
10030
|
export interface OrganizationMembership {
|
|
10008
10031
|
'id': string;
|
|
10009
10032
|
'organizationId': string;
|
|
@@ -66391,6 +66414,164 @@ export declare class OrganizationIntegrationsApi extends BaseAPI {
|
|
|
66391
66414
|
*/
|
|
66392
66415
|
updateIntegration(requestParameters: OrganizationIntegrationsApiUpdateIntegrationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateIntegration200Response, any, {}>>;
|
|
66393
66416
|
}
|
|
66417
|
+
/**
|
|
66418
|
+
* OrganizationLanguageoverridesApi - axios parameter creator
|
|
66419
|
+
*/
|
|
66420
|
+
export declare const OrganizationLanguageoverridesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
66421
|
+
/**
|
|
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.
|
|
66423
|
+
* @summary Delete a language override
|
|
66424
|
+
* @param {string} key Filter by key
|
|
66425
|
+
* @param {*} [options] Override http request option.
|
|
66426
|
+
* @throws {RequiredError}
|
|
66427
|
+
*/
|
|
66428
|
+
deleteOrganizationLanguageOverride: (key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
66429
|
+
/**
|
|
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.
|
|
66431
|
+
* @summary List an organization\'s language overrides
|
|
66432
|
+
* @param {number} [page] Page number
|
|
66433
|
+
* @param {number} [pageSize] Number of items per page
|
|
66434
|
+
* @param {string} [orderBy] Field to order by
|
|
66435
|
+
* @param {string} [search] Search query
|
|
66436
|
+
* @param {*} [options] Override http request option.
|
|
66437
|
+
* @throws {RequiredError}
|
|
66438
|
+
*/
|
|
66439
|
+
getOrganizationLanguageOverrides: (page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
66440
|
+
/**
|
|
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.
|
|
66442
|
+
* @summary Create or update a language override
|
|
66443
|
+
* @param {OrganizationLanguageOverrideUpsertInputs} organizationLanguageOverrideUpsertInputs
|
|
66444
|
+
* @param {*} [options] Override http request option.
|
|
66445
|
+
* @throws {RequiredError}
|
|
66446
|
+
*/
|
|
66447
|
+
upsertOrganizationLanguageOverride: (organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
66448
|
+
};
|
|
66449
|
+
/**
|
|
66450
|
+
* OrganizationLanguageoverridesApi - functional programming interface
|
|
66451
|
+
*/
|
|
66452
|
+
export declare const OrganizationLanguageoverridesApiFp: (configuration?: Configuration) => {
|
|
66453
|
+
/**
|
|
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
|
+
* @summary Delete a language override
|
|
66456
|
+
* @param {string} key Filter by key
|
|
66457
|
+
* @param {*} [options] Override http request option.
|
|
66458
|
+
* @throws {RequiredError}
|
|
66459
|
+
*/
|
|
66460
|
+
deleteOrganizationLanguageOverride(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>>;
|
|
66461
|
+
/**
|
|
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.
|
|
66463
|
+
* @summary List an organization\'s language overrides
|
|
66464
|
+
* @param {number} [page] Page number
|
|
66465
|
+
* @param {number} [pageSize] Number of items per page
|
|
66466
|
+
* @param {string} [orderBy] Field to order by
|
|
66467
|
+
* @param {string} [search] Search query
|
|
66468
|
+
* @param {*} [options] Override http request option.
|
|
66469
|
+
* @throws {RequiredError}
|
|
66470
|
+
*/
|
|
66471
|
+
getOrganizationLanguageOverrides(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationLanguageOverrides200Response>>;
|
|
66472
|
+
/**
|
|
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.
|
|
66474
|
+
* @summary Create or update a language override
|
|
66475
|
+
* @param {OrganizationLanguageOverrideUpsertInputs} organizationLanguageOverrideUpsertInputs
|
|
66476
|
+
* @param {*} [options] Override http request option.
|
|
66477
|
+
* @throws {RequiredError}
|
|
66478
|
+
*/
|
|
66479
|
+
upsertOrganizationLanguageOverride(organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>>;
|
|
66480
|
+
};
|
|
66481
|
+
/**
|
|
66482
|
+
* OrganizationLanguageoverridesApi - factory interface
|
|
66483
|
+
*/
|
|
66484
|
+
export declare const OrganizationLanguageoverridesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
66485
|
+
/**
|
|
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.
|
|
66487
|
+
* @summary Delete a language override
|
|
66488
|
+
* @param {OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest} requestParameters Request parameters.
|
|
66489
|
+
* @param {*} [options] Override http request option.
|
|
66490
|
+
* @throws {RequiredError}
|
|
66491
|
+
*/
|
|
66492
|
+
deleteOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response>;
|
|
66493
|
+
/**
|
|
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.
|
|
66495
|
+
* @summary List an organization\'s language overrides
|
|
66496
|
+
* @param {OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest} requestParameters Request parameters.
|
|
66497
|
+
* @param {*} [options] Override http request option.
|
|
66498
|
+
* @throws {RequiredError}
|
|
66499
|
+
*/
|
|
66500
|
+
getOrganizationLanguageOverrides(requestParameters?: OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOrganizationLanguageOverrides200Response>;
|
|
66501
|
+
/**
|
|
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.
|
|
66503
|
+
* @summary Create or update a language override
|
|
66504
|
+
* @param {OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest} requestParameters Request parameters.
|
|
66505
|
+
* @param {*} [options] Override http request option.
|
|
66506
|
+
* @throws {RequiredError}
|
|
66507
|
+
*/
|
|
66508
|
+
upsertOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response>;
|
|
66509
|
+
};
|
|
66510
|
+
/**
|
|
66511
|
+
* Request parameters for deleteOrganizationLanguageOverride operation in OrganizationLanguageoverridesApi.
|
|
66512
|
+
*/
|
|
66513
|
+
export interface OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest {
|
|
66514
|
+
/**
|
|
66515
|
+
* Filter by key
|
|
66516
|
+
*/
|
|
66517
|
+
readonly key: string;
|
|
66518
|
+
}
|
|
66519
|
+
/**
|
|
66520
|
+
* Request parameters for getOrganizationLanguageOverrides operation in OrganizationLanguageoverridesApi.
|
|
66521
|
+
*/
|
|
66522
|
+
export interface OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest {
|
|
66523
|
+
/**
|
|
66524
|
+
* Page number
|
|
66525
|
+
*/
|
|
66526
|
+
readonly page?: number;
|
|
66527
|
+
/**
|
|
66528
|
+
* Number of items per page
|
|
66529
|
+
*/
|
|
66530
|
+
readonly pageSize?: number;
|
|
66531
|
+
/**
|
|
66532
|
+
* Field to order by
|
|
66533
|
+
*/
|
|
66534
|
+
readonly orderBy?: string;
|
|
66535
|
+
/**
|
|
66536
|
+
* Search query
|
|
66537
|
+
*/
|
|
66538
|
+
readonly search?: string;
|
|
66539
|
+
}
|
|
66540
|
+
/**
|
|
66541
|
+
* Request parameters for upsertOrganizationLanguageOverride operation in OrganizationLanguageoverridesApi.
|
|
66542
|
+
*/
|
|
66543
|
+
export interface OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest {
|
|
66544
|
+
readonly organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs;
|
|
66545
|
+
}
|
|
66546
|
+
/**
|
|
66547
|
+
* OrganizationLanguageoverridesApi - object-oriented interface
|
|
66548
|
+
*/
|
|
66549
|
+
export declare class OrganizationLanguageoverridesApi extends BaseAPI {
|
|
66550
|
+
/**
|
|
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.
|
|
66552
|
+
* @summary Delete a language override
|
|
66553
|
+
* @param {OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest} requestParameters Request parameters.
|
|
66554
|
+
* @param {*} [options] Override http request option.
|
|
66555
|
+
* @throws {RequiredError}
|
|
66556
|
+
*/
|
|
66557
|
+
deleteOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncAccounts200Response, any, {}>>;
|
|
66558
|
+
/**
|
|
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.
|
|
66560
|
+
* @summary List an organization\'s language overrides
|
|
66561
|
+
* @param {OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest} requestParameters Request parameters.
|
|
66562
|
+
* @param {*} [options] Override http request option.
|
|
66563
|
+
* @throws {RequiredError}
|
|
66564
|
+
*/
|
|
66565
|
+
getOrganizationLanguageOverrides(requestParameters?: OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationLanguageOverrides200Response, any, {}>>;
|
|
66566
|
+
/**
|
|
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.
|
|
66568
|
+
* @summary Create or update a language override
|
|
66569
|
+
* @param {OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest} requestParameters Request parameters.
|
|
66570
|
+
* @param {*} [options] Override http request option.
|
|
66571
|
+
* @throws {RequiredError}
|
|
66572
|
+
*/
|
|
66573
|
+
upsertOrganizationLanguageOverride(requestParameters: OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncAccounts200Response, any, {}>>;
|
|
66574
|
+
}
|
|
66394
66575
|
/**
|
|
66395
66576
|
* OrganizationModulesApi - axios parameter creator
|
|
66396
66577
|
*/
|
package/dist/esm/api.js
CHANGED
|
@@ -1626,6 +1626,10 @@ export var GetOrganizationDomain200ResponseStatusEnum;
|
|
|
1626
1626
|
(function (GetOrganizationDomain200ResponseStatusEnum) {
|
|
1627
1627
|
GetOrganizationDomain200ResponseStatusEnum["Ok"] = "ok";
|
|
1628
1628
|
})(GetOrganizationDomain200ResponseStatusEnum || (GetOrganizationDomain200ResponseStatusEnum = {}));
|
|
1629
|
+
export var GetOrganizationLanguageOverrides200ResponseStatusEnum;
|
|
1630
|
+
(function (GetOrganizationLanguageOverrides200ResponseStatusEnum) {
|
|
1631
|
+
GetOrganizationLanguageOverrides200ResponseStatusEnum["Ok"] = "ok";
|
|
1632
|
+
})(GetOrganizationLanguageOverrides200ResponseStatusEnum || (GetOrganizationLanguageOverrides200ResponseStatusEnum = {}));
|
|
1629
1633
|
export var GetOrganizationModule200ResponseStatusEnum;
|
|
1630
1634
|
(function (GetOrganizationModule200ResponseStatusEnum) {
|
|
1631
1635
|
GetOrganizationModule200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -82661,6 +82665,262 @@ export class OrganizationIntegrationsApi extends BaseAPI {
|
|
|
82661
82665
|
return OrganizationIntegrationsApiFp(this.configuration).updateIntegration(requestParameters.integrationId, requestParameters.integrationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
82662
82666
|
}
|
|
82663
82667
|
}
|
|
82668
|
+
/**
|
|
82669
|
+
* OrganizationLanguageoverridesApi - axios parameter creator
|
|
82670
|
+
*/
|
|
82671
|
+
export const OrganizationLanguageoverridesApiAxiosParamCreator = function (configuration) {
|
|
82672
|
+
return {
|
|
82673
|
+
/**
|
|
82674
|
+
* 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.
|
|
82675
|
+
* @summary Delete a language override
|
|
82676
|
+
* @param {string} key Filter by key
|
|
82677
|
+
* @param {*} [options] Override http request option.
|
|
82678
|
+
* @throws {RequiredError}
|
|
82679
|
+
*/
|
|
82680
|
+
deleteOrganizationLanguageOverride: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
|
|
82681
|
+
// verify required parameter 'key' is not null or undefined
|
|
82682
|
+
assertParamExists('deleteOrganizationLanguageOverride', 'key', key);
|
|
82683
|
+
const localVarPath = `/organization/language-overrides`;
|
|
82684
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82685
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82686
|
+
let baseOptions;
|
|
82687
|
+
if (configuration) {
|
|
82688
|
+
baseOptions = configuration.baseOptions;
|
|
82689
|
+
}
|
|
82690
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
82691
|
+
const localVarHeaderParameter = {};
|
|
82692
|
+
const localVarQueryParameter = {};
|
|
82693
|
+
// authentication ApiKeyAuth required
|
|
82694
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
82695
|
+
// authentication OrganizationId required
|
|
82696
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
82697
|
+
if (key !== undefined) {
|
|
82698
|
+
localVarQueryParameter['key'] = key;
|
|
82699
|
+
}
|
|
82700
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
82701
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82702
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82703
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
82704
|
+
return {
|
|
82705
|
+
url: toPathString(localVarUrlObj),
|
|
82706
|
+
options: localVarRequestOptions,
|
|
82707
|
+
};
|
|
82708
|
+
}),
|
|
82709
|
+
/**
|
|
82710
|
+
* 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.
|
|
82711
|
+
* @summary List an organization\'s language overrides
|
|
82712
|
+
* @param {number} [page] Page number
|
|
82713
|
+
* @param {number} [pageSize] Number of items per page
|
|
82714
|
+
* @param {string} [orderBy] Field to order by
|
|
82715
|
+
* @param {string} [search] Search query
|
|
82716
|
+
* @param {*} [options] Override http request option.
|
|
82717
|
+
* @throws {RequiredError}
|
|
82718
|
+
*/
|
|
82719
|
+
getOrganizationLanguageOverrides: (page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (page, pageSize, orderBy, search, options = {}) {
|
|
82720
|
+
const localVarPath = `/organization/language-overrides`;
|
|
82721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82722
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82723
|
+
let baseOptions;
|
|
82724
|
+
if (configuration) {
|
|
82725
|
+
baseOptions = configuration.baseOptions;
|
|
82726
|
+
}
|
|
82727
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
82728
|
+
const localVarHeaderParameter = {};
|
|
82729
|
+
const localVarQueryParameter = {};
|
|
82730
|
+
// authentication ApiKeyAuth required
|
|
82731
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
82732
|
+
// authentication OrganizationId required
|
|
82733
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
82734
|
+
if (page !== undefined) {
|
|
82735
|
+
localVarQueryParameter['page'] = page;
|
|
82736
|
+
}
|
|
82737
|
+
if (pageSize !== undefined) {
|
|
82738
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
82739
|
+
}
|
|
82740
|
+
if (orderBy !== undefined) {
|
|
82741
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
82742
|
+
}
|
|
82743
|
+
if (search !== undefined) {
|
|
82744
|
+
localVarQueryParameter['search'] = search;
|
|
82745
|
+
}
|
|
82746
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
82747
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82748
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82749
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
82750
|
+
return {
|
|
82751
|
+
url: toPathString(localVarUrlObj),
|
|
82752
|
+
options: localVarRequestOptions,
|
|
82753
|
+
};
|
|
82754
|
+
}),
|
|
82755
|
+
/**
|
|
82756
|
+
* 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.
|
|
82757
|
+
* @summary Create or update a language override
|
|
82758
|
+
* @param {OrganizationLanguageOverrideUpsertInputs} organizationLanguageOverrideUpsertInputs
|
|
82759
|
+
* @param {*} [options] Override http request option.
|
|
82760
|
+
* @throws {RequiredError}
|
|
82761
|
+
*/
|
|
82762
|
+
upsertOrganizationLanguageOverride: (organizationLanguageOverrideUpsertInputs_1, ...args_1) => __awaiter(this, [organizationLanguageOverrideUpsertInputs_1, ...args_1], void 0, function* (organizationLanguageOverrideUpsertInputs, options = {}) {
|
|
82763
|
+
// verify required parameter 'organizationLanguageOverrideUpsertInputs' is not null or undefined
|
|
82764
|
+
assertParamExists('upsertOrganizationLanguageOverride', 'organizationLanguageOverrideUpsertInputs', organizationLanguageOverrideUpsertInputs);
|
|
82765
|
+
const localVarPath = `/organization/language-overrides`;
|
|
82766
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82767
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82768
|
+
let baseOptions;
|
|
82769
|
+
if (configuration) {
|
|
82770
|
+
baseOptions = configuration.baseOptions;
|
|
82771
|
+
}
|
|
82772
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
82773
|
+
const localVarHeaderParameter = {};
|
|
82774
|
+
const localVarQueryParameter = {};
|
|
82775
|
+
// authentication ApiKeyAuth required
|
|
82776
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
82777
|
+
// authentication OrganizationId required
|
|
82778
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
82779
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
82780
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
82781
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82782
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82783
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
82784
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationLanguageOverrideUpsertInputs, localVarRequestOptions, configuration);
|
|
82785
|
+
return {
|
|
82786
|
+
url: toPathString(localVarUrlObj),
|
|
82787
|
+
options: localVarRequestOptions,
|
|
82788
|
+
};
|
|
82789
|
+
}),
|
|
82790
|
+
};
|
|
82791
|
+
};
|
|
82792
|
+
/**
|
|
82793
|
+
* OrganizationLanguageoverridesApi - functional programming interface
|
|
82794
|
+
*/
|
|
82795
|
+
export const OrganizationLanguageoverridesApiFp = function (configuration) {
|
|
82796
|
+
const localVarAxiosParamCreator = OrganizationLanguageoverridesApiAxiosParamCreator(configuration);
|
|
82797
|
+
return {
|
|
82798
|
+
/**
|
|
82799
|
+
* 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.
|
|
82800
|
+
* @summary Delete a language override
|
|
82801
|
+
* @param {string} key Filter by key
|
|
82802
|
+
* @param {*} [options] Override http request option.
|
|
82803
|
+
* @throws {RequiredError}
|
|
82804
|
+
*/
|
|
82805
|
+
deleteOrganizationLanguageOverride(key, options) {
|
|
82806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82807
|
+
var _a, _b, _c;
|
|
82808
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrganizationLanguageOverride(key, options);
|
|
82809
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82810
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationLanguageoverridesApi.deleteOrganizationLanguageOverride']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
82811
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
82812
|
+
});
|
|
82813
|
+
},
|
|
82814
|
+
/**
|
|
82815
|
+
* 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.
|
|
82816
|
+
* @summary List an organization\'s language overrides
|
|
82817
|
+
* @param {number} [page] Page number
|
|
82818
|
+
* @param {number} [pageSize] Number of items per page
|
|
82819
|
+
* @param {string} [orderBy] Field to order by
|
|
82820
|
+
* @param {string} [search] Search query
|
|
82821
|
+
* @param {*} [options] Override http request option.
|
|
82822
|
+
* @throws {RequiredError}
|
|
82823
|
+
*/
|
|
82824
|
+
getOrganizationLanguageOverrides(page, pageSize, orderBy, search, options) {
|
|
82825
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82826
|
+
var _a, _b, _c;
|
|
82827
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationLanguageOverrides(page, pageSize, orderBy, search, options);
|
|
82828
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82829
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationLanguageoverridesApi.getOrganizationLanguageOverrides']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
82830
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
82831
|
+
});
|
|
82832
|
+
},
|
|
82833
|
+
/**
|
|
82834
|
+
* 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.
|
|
82835
|
+
* @summary Create or update a language override
|
|
82836
|
+
* @param {OrganizationLanguageOverrideUpsertInputs} organizationLanguageOverrideUpsertInputs
|
|
82837
|
+
* @param {*} [options] Override http request option.
|
|
82838
|
+
* @throws {RequiredError}
|
|
82839
|
+
*/
|
|
82840
|
+
upsertOrganizationLanguageOverride(organizationLanguageOverrideUpsertInputs, options) {
|
|
82841
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82842
|
+
var _a, _b, _c;
|
|
82843
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertOrganizationLanguageOverride(organizationLanguageOverrideUpsertInputs, options);
|
|
82844
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82845
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationLanguageoverridesApi.upsertOrganizationLanguageOverride']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
82846
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
82847
|
+
});
|
|
82848
|
+
},
|
|
82849
|
+
};
|
|
82850
|
+
};
|
|
82851
|
+
/**
|
|
82852
|
+
* OrganizationLanguageoverridesApi - factory interface
|
|
82853
|
+
*/
|
|
82854
|
+
export const OrganizationLanguageoverridesApiFactory = function (configuration, basePath, axios) {
|
|
82855
|
+
const localVarFp = OrganizationLanguageoverridesApiFp(configuration);
|
|
82856
|
+
return {
|
|
82857
|
+
/**
|
|
82858
|
+
* 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.
|
|
82859
|
+
* @summary Delete a language override
|
|
82860
|
+
* @param {OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest} requestParameters Request parameters.
|
|
82861
|
+
* @param {*} [options] Override http request option.
|
|
82862
|
+
* @throws {RequiredError}
|
|
82863
|
+
*/
|
|
82864
|
+
deleteOrganizationLanguageOverride(requestParameters, options) {
|
|
82865
|
+
return localVarFp.deleteOrganizationLanguageOverride(requestParameters.key, options).then((request) => request(axios, basePath));
|
|
82866
|
+
},
|
|
82867
|
+
/**
|
|
82868
|
+
* 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.
|
|
82869
|
+
* @summary List an organization\'s language overrides
|
|
82870
|
+
* @param {OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest} requestParameters Request parameters.
|
|
82871
|
+
* @param {*} [options] Override http request option.
|
|
82872
|
+
* @throws {RequiredError}
|
|
82873
|
+
*/
|
|
82874
|
+
getOrganizationLanguageOverrides(requestParameters = {}, options) {
|
|
82875
|
+
return localVarFp.getOrganizationLanguageOverrides(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
82876
|
+
},
|
|
82877
|
+
/**
|
|
82878
|
+
* 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.
|
|
82879
|
+
* @summary Create or update a language override
|
|
82880
|
+
* @param {OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest} requestParameters Request parameters.
|
|
82881
|
+
* @param {*} [options] Override http request option.
|
|
82882
|
+
* @throws {RequiredError}
|
|
82883
|
+
*/
|
|
82884
|
+
upsertOrganizationLanguageOverride(requestParameters, options) {
|
|
82885
|
+
return localVarFp.upsertOrganizationLanguageOverride(requestParameters.organizationLanguageOverrideUpsertInputs, options).then((request) => request(axios, basePath));
|
|
82886
|
+
},
|
|
82887
|
+
};
|
|
82888
|
+
};
|
|
82889
|
+
/**
|
|
82890
|
+
* OrganizationLanguageoverridesApi - object-oriented interface
|
|
82891
|
+
*/
|
|
82892
|
+
export class OrganizationLanguageoverridesApi extends BaseAPI {
|
|
82893
|
+
/**
|
|
82894
|
+
* 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.
|
|
82895
|
+
* @summary Delete a language override
|
|
82896
|
+
* @param {OrganizationLanguageoverridesApiDeleteOrganizationLanguageOverrideRequest} requestParameters Request parameters.
|
|
82897
|
+
* @param {*} [options] Override http request option.
|
|
82898
|
+
* @throws {RequiredError}
|
|
82899
|
+
*/
|
|
82900
|
+
deleteOrganizationLanguageOverride(requestParameters, options) {
|
|
82901
|
+
return OrganizationLanguageoverridesApiFp(this.configuration).deleteOrganizationLanguageOverride(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
82902
|
+
}
|
|
82903
|
+
/**
|
|
82904
|
+
* 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.
|
|
82905
|
+
* @summary List an organization\'s language overrides
|
|
82906
|
+
* @param {OrganizationLanguageoverridesApiGetOrganizationLanguageOverridesRequest} requestParameters Request parameters.
|
|
82907
|
+
* @param {*} [options] Override http request option.
|
|
82908
|
+
* @throws {RequiredError}
|
|
82909
|
+
*/
|
|
82910
|
+
getOrganizationLanguageOverrides(requestParameters = {}, options) {
|
|
82911
|
+
return OrganizationLanguageoverridesApiFp(this.configuration).getOrganizationLanguageOverrides(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
82912
|
+
}
|
|
82913
|
+
/**
|
|
82914
|
+
* 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.
|
|
82915
|
+
* @summary Create or update a language override
|
|
82916
|
+
* @param {OrganizationLanguageoverridesApiUpsertOrganizationLanguageOverrideRequest} requestParameters Request parameters.
|
|
82917
|
+
* @param {*} [options] Override http request option.
|
|
82918
|
+
* @throws {RequiredError}
|
|
82919
|
+
*/
|
|
82920
|
+
upsertOrganizationLanguageOverride(requestParameters, options) {
|
|
82921
|
+
return OrganizationLanguageoverridesApiFp(this.configuration).upsertOrganizationLanguageOverride(requestParameters.organizationLanguageOverrideUpsertInputs, options).then((request) => request(this.axios, this.basePath));
|
|
82922
|
+
}
|
|
82923
|
+
}
|
|
82664
82924
|
/**
|
|
82665
82925
|
* OrganizationModulesApi - axios parameter creator
|
|
82666
82926
|
*/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# GetOrganizationLanguageOverrides200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**status** | **string** | | [default to undefined]
|
|
9
|
+
**message** | **string** | | [default to undefined]
|
|
10
|
+
**data** | [**Array<OrganizationLanguageOverride>**](OrganizationLanguageOverride.md) | | [default to undefined]
|
|
11
|
+
**count** | **number** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { GetOrganizationLanguageOverrides200Response } from '@connectedxm/admin-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: GetOrganizationLanguageOverrides200Response = {
|
|
19
|
+
status,
|
|
20
|
+
message,
|
|
21
|
+
data,
|
|
22
|
+
count,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# OrganizationLanguageOverride
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**key** | **string** | | [default to undefined]
|
|
9
|
+
**values** | **{ [key: string]: any; }** | | [default to undefined]
|
|
10
|
+
**createdAt** | **string** | | [default to undefined]
|
|
11
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { OrganizationLanguageOverride } from '@connectedxm/admin-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: OrganizationLanguageOverride = {
|
|
19
|
+
key,
|
|
20
|
+
values,
|
|
21
|
+
createdAt,
|
|
22
|
+
updatedAt,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# OrganizationLanguageOverrideUpsertInputs
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**key** | **string** | | [default to undefined]
|
|
9
|
+
**values** | **{ [key: string]: any; }** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { OrganizationLanguageOverrideUpsertInputs } from '@connectedxm/admin-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: OrganizationLanguageOverrideUpsertInputs = {
|
|
17
|
+
key,
|
|
18
|
+
values,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|