@connectedxm/admin-sdk 7.9.5 → 7.10.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 +373 -0
- package/dist/AdminApi.d.ts +2 -1
- package/dist/AdminApi.js +1 -0
- package/dist/api.d.ts +196 -0
- package/dist/api.js +300 -21
- package/dist/esm/AdminApi.d.ts +2 -1
- package/dist/esm/AdminApi.js +2 -1
- package/dist/esm/api.d.ts +196 -0
- package/dist/esm/api.js +275 -0
- package/docs/GetOrganizationLanguageOverrides200Response.md +26 -0
- package/docs/OrganizationLanguageOverride.md +28 -0
- package/docs/OrganizationLanguageOverrideUpsertInputs.md +22 -0
- package/docs/OrganizationLanguageoverridesApi.md +182 -0
- package/package.json +1 -1
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# OrganizationLanguageoverridesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://admin-api.connected.dev*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteOrganizationLanguageOverride**](#deleteorganizationlanguageoverride) | **DELETE** /organization/language-overrides/{locale} | Delete a language override|
|
|
8
|
+
|[**getOrganizationLanguageOverrides**](#getorganizationlanguageoverrides) | **GET** /organization/language-overrides | List an organization\'s language overrides|
|
|
9
|
+
|[**upsertOrganizationLanguageOverride**](#upsertorganizationlanguageoverride) | **PUT** /organization/language-overrides/{locale} | Create or update a language override|
|
|
10
|
+
|
|
11
|
+
# **deleteOrganizationLanguageOverride**
|
|
12
|
+
> SyncAccounts200Response deleteOrganizationLanguageOverride()
|
|
13
|
+
|
|
14
|
+
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.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
OrganizationLanguageoverridesApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@connectedxm/admin-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new OrganizationLanguageoverridesApi(configuration);
|
|
26
|
+
|
|
27
|
+
let locale: string; //The locale identifier (default to undefined)
|
|
28
|
+
let key: string; //Filter by key (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.deleteOrganizationLanguageOverride(
|
|
31
|
+
locale,
|
|
32
|
+
key
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **locale** | [**string**] | The locale identifier | defaults to undefined|
|
|
41
|
+
| **key** | [**string**] | Filter by key | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**SyncAccounts200Response**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: Not defined
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Successful response | - |
|
|
62
|
+
|
|
63
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
64
|
+
|
|
65
|
+
# **getOrganizationLanguageOverrides**
|
|
66
|
+
> GetOrganizationLanguageOverrides200Response getOrganizationLanguageOverrides()
|
|
67
|
+
|
|
68
|
+
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.
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
OrganizationLanguageoverridesApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from '@connectedxm/admin-sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new OrganizationLanguageoverridesApi(configuration);
|
|
80
|
+
|
|
81
|
+
let locale: string; //Filter by locale (optional) (default to undefined)
|
|
82
|
+
let page: number; //Page number (optional) (default to 1)
|
|
83
|
+
let pageSize: number; //Number of items per page (optional) (default to 25)
|
|
84
|
+
let orderBy: string; //Field to order by (optional) (default to undefined)
|
|
85
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.getOrganizationLanguageOverrides(
|
|
88
|
+
locale,
|
|
89
|
+
page,
|
|
90
|
+
pageSize,
|
|
91
|
+
orderBy,
|
|
92
|
+
search
|
|
93
|
+
);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|Name | Type | Description | Notes|
|
|
99
|
+
|------------- | ------------- | ------------- | -------------|
|
|
100
|
+
| **locale** | [**string**] | Filter by locale | (optional) defaults to undefined|
|
|
101
|
+
| **page** | [**number**] | Page number | (optional) defaults to 1|
|
|
102
|
+
| **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
103
|
+
| **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
|
|
104
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
**GetOrganizationLanguageOverrides200Response**
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: Not defined
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### HTTP response details
|
|
122
|
+
| Status code | Description | Response headers |
|
|
123
|
+
|-------------|-------------|------------------|
|
|
124
|
+
|**200** | Successful response | - |
|
|
125
|
+
|
|
126
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
127
|
+
|
|
128
|
+
# **upsertOrganizationLanguageOverride**
|
|
129
|
+
> SyncAccounts200Response upsertOrganizationLanguageOverride(organizationLanguageOverrideUpsertInputs)
|
|
130
|
+
|
|
131
|
+
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.
|
|
132
|
+
|
|
133
|
+
### Example
|
|
134
|
+
|
|
135
|
+
```typescript
|
|
136
|
+
import {
|
|
137
|
+
OrganizationLanguageoverridesApi,
|
|
138
|
+
Configuration,
|
|
139
|
+
OrganizationLanguageOverrideUpsertInputs
|
|
140
|
+
} from '@connectedxm/admin-sdk';
|
|
141
|
+
|
|
142
|
+
const configuration = new Configuration();
|
|
143
|
+
const apiInstance = new OrganizationLanguageoverridesApi(configuration);
|
|
144
|
+
|
|
145
|
+
let locale: string; //The locale identifier (default to undefined)
|
|
146
|
+
let organizationLanguageOverrideUpsertInputs: OrganizationLanguageOverrideUpsertInputs; //
|
|
147
|
+
|
|
148
|
+
const { status, data } = await apiInstance.upsertOrganizationLanguageOverride(
|
|
149
|
+
locale,
|
|
150
|
+
organizationLanguageOverrideUpsertInputs
|
|
151
|
+
);
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Parameters
|
|
155
|
+
|
|
156
|
+
|Name | Type | Description | Notes|
|
|
157
|
+
|------------- | ------------- | ------------- | -------------|
|
|
158
|
+
| **organizationLanguageOverrideUpsertInputs** | **OrganizationLanguageOverrideUpsertInputs**| | |
|
|
159
|
+
| **locale** | [**string**] | The locale identifier | defaults to undefined|
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Return type
|
|
163
|
+
|
|
164
|
+
**SyncAccounts200Response**
|
|
165
|
+
|
|
166
|
+
### Authorization
|
|
167
|
+
|
|
168
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
169
|
+
|
|
170
|
+
### HTTP request headers
|
|
171
|
+
|
|
172
|
+
- **Content-Type**: application/json
|
|
173
|
+
- **Accept**: application/json
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### HTTP response details
|
|
177
|
+
| Status code | Description | Response headers |
|
|
178
|
+
|-------------|-------------|------------------|
|
|
179
|
+
|**200** | Successful response | - |
|
|
180
|
+
|
|
181
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
182
|
+
|