@connectedxm/admin-sdk 11.9.1 → 11.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/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 11.9.1
7
+ * The version of the OpenAPI document: 11.10.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2047,6 +2047,10 @@ export var ImageType;
2047
2047
  ImageType["Event"] = "event";
2048
2048
  ImageType["Activation"] = "activation";
2049
2049
  })(ImageType || (ImageType = {}));
2050
+ export var ImportEventPassAttributes200ResponseStatusEnum;
2051
+ (function (ImportEventPassAttributes200ResponseStatusEnum) {
2052
+ ImportEventPassAttributes200ResponseStatusEnum["Ok"] = "ok";
2053
+ })(ImportEventPassAttributes200ResponseStatusEnum || (ImportEventPassAttributes200ResponseStatusEnum = {}));
2050
2054
  export var ImportItemStatus;
2051
2055
  (function (ImportItemStatus) {
2052
2056
  ImportItemStatus["Pending"] = "pending";
@@ -2338,6 +2342,11 @@ export var PageType;
2338
2342
  PageType["Terms"] = "terms";
2339
2343
  PageType["Team"] = "team";
2340
2344
  })(PageType || (PageType = {}));
2345
+ export var PassAttributeImportResultStatusEnum;
2346
+ (function (PassAttributeImportResultStatusEnum) {
2347
+ PassAttributeImportResultStatusEnum["Resolved"] = "resolved";
2348
+ PassAttributeImportResultStatusEnum["Invalid"] = "invalid";
2349
+ })(PassAttributeImportResultStatusEnum || (PassAttributeImportResultStatusEnum = {}));
2341
2350
  export var PassChangeLogType;
2342
2351
  (function (PassChangeLogType) {
2343
2352
  PassChangeLogType["Status"] = "status";
@@ -42529,6 +42538,45 @@ export const EventsPassesAttributesApiAxiosParamCreator = function (configuratio
42529
42538
  options: localVarRequestOptions,
42530
42539
  };
42531
42540
  }),
42541
+ /**
42542
+ * Creates or updates attribute values on up to 500 passes in one call, the write half of a CSV import. Each row\'s passId may be a pass id or the pass\'s alternateId, and each attributeId may be an attribute id or its name. Rows whose pass or attribute cannot be resolved are reported back as invalid and skipped rather than failing the batch. Requires read permission on events and read/update permission on attendees.
42543
+ * @summary Bulk set custom attribute values across many passes
42544
+ * @param {string} eventId The event identifier
42545
+ * @param {PassAttributesImportInputs} passAttributesImportInputs
42546
+ * @param {*} [options] Override http request option.
42547
+ * @throws {RequiredError}
42548
+ */
42549
+ importEventPassAttributes: (eventId_1, passAttributesImportInputs_1, ...args_1) => __awaiter(this, [eventId_1, passAttributesImportInputs_1, ...args_1], void 0, function* (eventId, passAttributesImportInputs, options = {}) {
42550
+ // verify required parameter 'eventId' is not null or undefined
42551
+ assertParamExists('importEventPassAttributes', 'eventId', eventId);
42552
+ // verify required parameter 'passAttributesImportInputs' is not null or undefined
42553
+ assertParamExists('importEventPassAttributes', 'passAttributesImportInputs', passAttributesImportInputs);
42554
+ const localVarPath = `/events/{eventId}/passes/attributes/import`
42555
+ .replace('{eventId}', encodeURIComponent(String(eventId)));
42556
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42557
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42558
+ let baseOptions;
42559
+ if (configuration) {
42560
+ baseOptions = configuration.baseOptions;
42561
+ }
42562
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
42563
+ const localVarHeaderParameter = {};
42564
+ const localVarQueryParameter = {};
42565
+ // authentication ApiKeyAuth required
42566
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
42567
+ // authentication OrganizationId required
42568
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
42569
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42570
+ localVarHeaderParameter['Accept'] = 'application/json';
42571
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42572
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42573
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
42574
+ localVarRequestOptions.data = serializeDataIfNeeded(passAttributesImportInputs, localVarRequestOptions, configuration);
42575
+ return {
42576
+ url: toPathString(localVarUrlObj),
42577
+ options: localVarRequestOptions,
42578
+ };
42579
+ }),
42532
42580
  /**
42533
42581
  * Deletes a single custom attribute value that had been set on the specified event pass, requires read permission on events and read/update permission on attendees.
42534
42582
  * @summary Remove a custom attribute from a pass
@@ -42643,6 +42691,23 @@ export const EventsPassesAttributesApiFp = function (configuration) {
42643
42691
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42644
42692
  });
42645
42693
  },
42694
+ /**
42695
+ * Creates or updates attribute values on up to 500 passes in one call, the write half of a CSV import. Each row\'s passId may be a pass id or the pass\'s alternateId, and each attributeId may be an attribute id or its name. Rows whose pass or attribute cannot be resolved are reported back as invalid and skipped rather than failing the batch. Requires read permission on events and read/update permission on attendees.
42696
+ * @summary Bulk set custom attribute values across many passes
42697
+ * @param {string} eventId The event identifier
42698
+ * @param {PassAttributesImportInputs} passAttributesImportInputs
42699
+ * @param {*} [options] Override http request option.
42700
+ * @throws {RequiredError}
42701
+ */
42702
+ importEventPassAttributes(eventId, passAttributesImportInputs, options) {
42703
+ return __awaiter(this, void 0, void 0, function* () {
42704
+ var _a, _b, _c;
42705
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.importEventPassAttributes(eventId, passAttributesImportInputs, options);
42706
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
42707
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsPassesAttributesApi.importEventPassAttributes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
42708
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42709
+ });
42710
+ },
42646
42711
  /**
42647
42712
  * Deletes a single custom attribute value that had been set on the specified event pass, requires read permission on events and read/update permission on attendees.
42648
42713
  * @summary Remove a custom attribute from a pass
@@ -42697,6 +42762,16 @@ export const EventsPassesAttributesApiFactory = function (configuration, basePat
42697
42762
  getEventPassAttributes(requestParameters, options) {
42698
42763
  return localVarFp.getEventPassAttributes(requestParameters.eventId, requestParameters.passId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
42699
42764
  },
42765
+ /**
42766
+ * Creates or updates attribute values on up to 500 passes in one call, the write half of a CSV import. Each row\'s passId may be a pass id or the pass\'s alternateId, and each attributeId may be an attribute id or its name. Rows whose pass or attribute cannot be resolved are reported back as invalid and skipped rather than failing the batch. Requires read permission on events and read/update permission on attendees.
42767
+ * @summary Bulk set custom attribute values across many passes
42768
+ * @param {EventsPassesAttributesApiImportEventPassAttributesRequest} requestParameters Request parameters.
42769
+ * @param {*} [options] Override http request option.
42770
+ * @throws {RequiredError}
42771
+ */
42772
+ importEventPassAttributes(requestParameters, options) {
42773
+ return localVarFp.importEventPassAttributes(requestParameters.eventId, requestParameters.passAttributesImportInputs, options).then((request) => request(axios, basePath));
42774
+ },
42700
42775
  /**
42701
42776
  * Deletes a single custom attribute value that had been set on the specified event pass, requires read permission on events and read/update permission on attendees.
42702
42777
  * @summary Remove a custom attribute from a pass
@@ -42733,6 +42808,16 @@ export class EventsPassesAttributesApi extends BaseAPI {
42733
42808
  getEventPassAttributes(requestParameters, options) {
42734
42809
  return EventsPassesAttributesApiFp(this.configuration).getEventPassAttributes(requestParameters.eventId, requestParameters.passId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
42735
42810
  }
42811
+ /**
42812
+ * Creates or updates attribute values on up to 500 passes in one call, the write half of a CSV import. Each row\'s passId may be a pass id or the pass\'s alternateId, and each attributeId may be an attribute id or its name. Rows whose pass or attribute cannot be resolved are reported back as invalid and skipped rather than failing the batch. Requires read permission on events and read/update permission on attendees.
42813
+ * @summary Bulk set custom attribute values across many passes
42814
+ * @param {EventsPassesAttributesApiImportEventPassAttributesRequest} requestParameters Request parameters.
42815
+ * @param {*} [options] Override http request option.
42816
+ * @throws {RequiredError}
42817
+ */
42818
+ importEventPassAttributes(requestParameters, options) {
42819
+ return EventsPassesAttributesApiFp(this.configuration).importEventPassAttributes(requestParameters.eventId, requestParameters.passAttributesImportInputs, options).then((request) => request(this.axios, this.basePath));
42820
+ }
42736
42821
  /**
42737
42822
  * Deletes a single custom attribute value that had been set on the specified event pass, requires read permission on events and read/update permission on attendees.
42738
42823
  * @summary Remove a custom attribute from a pass
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 11.9.1
5
+ * The version of the OpenAPI document: 11.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 11.9.1
7
+ * The version of the OpenAPI document: 11.10.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 11.9.1
5
+ * The version of the OpenAPI document: 11.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 11.9.1
7
+ * The version of the OpenAPI document: 11.10.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 11.9.1
5
+ * The version of the OpenAPI document: 11.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Connected Admin API
4
4
  * The Admin API allows you to manage your Connected community programmatically.
5
5
  *
6
- * The version of the OpenAPI document: 11.9.1
6
+ * The version of the OpenAPI document: 11.10.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,6 +5,7 @@ All URIs are relative to *https://admin-api.connected.dev*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getEventPassAttributes**](#geteventpassattributes) | **GET** /events/{eventId}/passes/{passId}/attributes | List an event pass\'s attributes|
8
+ |[**importEventPassAttributes**](#importeventpassattributes) | **POST** /events/{eventId}/passes/attributes/import | Bulk set custom attribute values across many passes|
8
9
  |[**removeEventPassAttribute**](#removeeventpassattribute) | **DELETE** /events/{eventId}/passes/{passId}/attributes/{attributeId} | Remove a custom attribute from a pass|
9
10
  |[**updateEventPassAttributes**](#updateeventpassattributes) | **PUT** /events/{eventId}/passes/{passId}/attributes | Set custom attribute values on a pass|
10
11
 
@@ -67,6 +68,61 @@ const { status, data } = await apiInstance.getEventPassAttributes(
67
68
  - **Accept**: application/json
68
69
 
69
70
 
71
+ ### HTTP response details
72
+ | Status code | Description | Response headers |
73
+ |-------------|-------------|------------------|
74
+ |**200** | Successful response | - |
75
+
76
+ [[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)
77
+
78
+ # **importEventPassAttributes**
79
+ > ImportEventPassAttributes200Response importEventPassAttributes(passAttributesImportInputs)
80
+
81
+ Creates or updates attribute values on up to 500 passes in one call, the write half of a CSV import. Each row\'s passId may be a pass id or the pass\'s alternateId, and each attributeId may be an attribute id or its name. Rows whose pass or attribute cannot be resolved are reported back as invalid and skipped rather than failing the batch. Requires read permission on events and read/update permission on attendees.
82
+
83
+ ### Example
84
+
85
+ ```typescript
86
+ import {
87
+ EventsPassesAttributesApi,
88
+ Configuration,
89
+ PassAttributesImportInputs
90
+ } from '@connectedxm/admin-sdk';
91
+
92
+ const configuration = new Configuration();
93
+ const apiInstance = new EventsPassesAttributesApi(configuration);
94
+
95
+ let eventId: string; //The event identifier (default to undefined)
96
+ let passAttributesImportInputs: PassAttributesImportInputs; //
97
+
98
+ const { status, data } = await apiInstance.importEventPassAttributes(
99
+ eventId,
100
+ passAttributesImportInputs
101
+ );
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ |Name | Type | Description | Notes|
107
+ |------------- | ------------- | ------------- | -------------|
108
+ | **passAttributesImportInputs** | **PassAttributesImportInputs**| | |
109
+ | **eventId** | [**string**] | The event identifier | defaults to undefined|
110
+
111
+
112
+ ### Return type
113
+
114
+ **ImportEventPassAttributes200Response**
115
+
116
+ ### Authorization
117
+
118
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
119
+
120
+ ### HTTP request headers
121
+
122
+ - **Content-Type**: application/json
123
+ - **Accept**: application/json
124
+
125
+
70
126
  ### HTTP response details
71
127
  | Status code | Description | Response headers |
72
128
  |-------------|-------------|------------------|
@@ -0,0 +1,24 @@
1
+ # ImportEventPassAttributes200Response
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** | [**PassAttributeImportSummary**](PassAttributeImportSummary.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ImportEventPassAttributes200Response } from '@connectedxm/admin-sdk';
16
+
17
+ const instance: ImportEventPassAttributes200Response = {
18
+ status,
19
+ message,
20
+ data,
21
+ };
22
+ ```
23
+
24
+ [[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
+ # PassAttributeImportResult
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **index** | **number** | | [default to undefined]
9
+ **passId** | **string** | | [default to undefined]
10
+ **status** | **string** | | [default to undefined]
11
+ **message** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PassAttributeImportResult } from '@connectedxm/admin-sdk';
17
+
18
+ const instance: PassAttributeImportResult = {
19
+ index,
20
+ passId,
21
+ status,
22
+ message,
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
+ # PassAttributeImportSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **created** | **number** | | [default to undefined]
9
+ **updated** | **number** | | [default to undefined]
10
+ **unchanged** | **number** | | [default to undefined]
11
+ **results** | [**Array<PassAttributeImportResult>**](PassAttributeImportResult.md) | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PassAttributeImportSummary } from '@connectedxm/admin-sdk';
17
+
18
+ const instance: PassAttributeImportSummary = {
19
+ created,
20
+ updated,
21
+ unchanged,
22
+ results,
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,20 @@
1
+ # PassAttributesImportInputs
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **rows** | [**Array<PassAttributesImportInputsRowsInner>**](PassAttributesImportInputsRowsInner.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { PassAttributesImportInputs } from '@connectedxm/admin-sdk';
14
+
15
+ const instance: PassAttributesImportInputs = {
16
+ rows,
17
+ };
18
+ ```
19
+
20
+ [[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
+ # PassAttributesImportInputsRowsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **passId** | **string** | | [default to undefined]
9
+ **values** | [**Array<PassAttributesUpdateInputsValuesInner>**](PassAttributesUpdateInputsValuesInner.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PassAttributesImportInputsRowsInner } from '@connectedxm/admin-sdk';
15
+
16
+ const instance: PassAttributesImportInputsRowsInner = {
17
+ passId,
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin-sdk",
3
- "version": "11.9.1",
3
+ "version": "11.10.0",
4
4
  "description": "OpenAPI client for @connectedxm/admin-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {