@connectedxm/admin 6.30.1 → 6.32.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/index.js CHANGED
@@ -17268,6 +17268,38 @@ var useGetPayment = (paymentId = "", options = {}) => {
17268
17268
  );
17269
17269
  };
17270
17270
 
17271
+ // src/queries/organization/payment/useGetPaymentTaxMetadata.ts
17272
+ var PAYMENT_TAX_METADATA_QUERY_KEY = (paymentId) => [
17273
+ ...PAYMENT_QUERY_KEY(paymentId),
17274
+ "TAX_METADATA"
17275
+ ];
17276
+ var SET_PAYMENT_TAX_METADATA_QUERY_DATA = (client, keyParams, response) => {
17277
+ client.setQueryData(PAYMENT_TAX_METADATA_QUERY_KEY(...keyParams), response);
17278
+ };
17279
+ var GetPaymentTaxMetadata = async ({
17280
+ paymentId,
17281
+ adminApiParams
17282
+ }) => {
17283
+ const adminApi = await GetAdminAPI(adminApiParams);
17284
+ const { data } = await adminApi.get(
17285
+ `/payments/${paymentId}/tax-metadata`
17286
+ );
17287
+ return data;
17288
+ };
17289
+ var useGetPaymentTaxMetadata = (paymentId = "", options = {}) => {
17290
+ return useConnectedSingleQuery(
17291
+ PAYMENT_TAX_METADATA_QUERY_KEY(paymentId),
17292
+ (params) => GetPaymentTaxMetadata({
17293
+ paymentId,
17294
+ ...params
17295
+ }),
17296
+ {
17297
+ ...options,
17298
+ enabled: !!paymentId && (options.enabled ?? true)
17299
+ }
17300
+ );
17301
+ };
17302
+
17271
17303
  // src/queries/organization/sideEffects/useGetOrganizationSideEffects.ts
17272
17304
  var ORGANIZATION_SIDE_EFFECTS_QUERY_KEY = (triggerType, triggerId) => {
17273
17305
  const keys = [...ORGANIZATION_QUERY_KEY(), "SIDE_EFFECTS"];
@@ -41108,6 +41140,7 @@ export {
41108
41140
  GetOrganizationWebhook,
41109
41141
  GetOrganizationWebhooks,
41110
41142
  GetPayment,
41143
+ GetPaymentTaxMetadata,
41111
41144
  GetPayments,
41112
41145
  GetPreferences,
41113
41146
  GetPreset,
@@ -41322,6 +41355,7 @@ export {
41322
41355
  OrganizationTriggerType,
41323
41356
  PAYMENTS_QUERY_KEY,
41324
41357
  PAYMENT_QUERY_KEY,
41358
+ PAYMENT_TAX_METADATA_QUERY_KEY,
41325
41359
  PREFERENCES_QUERY_KEY,
41326
41360
  PRESETS_QUERY_KEY,
41327
41361
  PRESET_QUERY_KEY,
@@ -41877,6 +41911,7 @@ export {
41877
41911
  SET_PASS_TYPE_COUPONS_QUERY_DATA,
41878
41912
  SET_PAYMENTS_QUERY_DATA,
41879
41913
  SET_PAYMENT_QUERY_DATA,
41914
+ SET_PAYMENT_TAX_METADATA_QUERY_DATA,
41880
41915
  SET_PREFERENCES_QUERY_DATA,
41881
41916
  SET_PRESETS_QUERY_DATA,
41882
41917
  SET_PRESET_QUERY_DATA,
@@ -43076,6 +43111,7 @@ export {
43076
43111
  useGetOrganizationWebhook,
43077
43112
  useGetOrganizationWebhooks,
43078
43113
  useGetPayment,
43114
+ useGetPaymentTaxMetadata,
43079
43115
  useGetPayments,
43080
43116
  useGetPreferences,
43081
43117
  useGetPreset,
package/openapi.json CHANGED
@@ -76424,6 +76424,62 @@
76424
76424
  ]
76425
76425
  }
76426
76426
  },
76427
+ "/payments/{paymentId}/tax-metadata": {
76428
+ "get": {
76429
+ "operationId": "GetPaymentTaxMetadata",
76430
+ "summary": "Get Payment Tax Metadata",
76431
+ "description": "Get Payment Tax Metadata endpoint",
76432
+ "parameters": [
76433
+ {
76434
+ "in": "path",
76435
+ "name": "paymentId",
76436
+ "schema": {
76437
+ "type": "string"
76438
+ },
76439
+ "description": "The payment identifier",
76440
+ "required": true
76441
+ }
76442
+ ],
76443
+ "responses": {
76444
+ "200": {
76445
+ "description": "Successful response",
76446
+ "content": {
76447
+ "application/json": {
76448
+ "schema": {
76449
+ "type": "object",
76450
+ "properties": {
76451
+ "status": {
76452
+ "type": "string",
76453
+ "enum": [
76454
+ "ok"
76455
+ ]
76456
+ },
76457
+ "message": {
76458
+ "type": "string",
76459
+ "example": "Success message."
76460
+ },
76461
+ "data": {
76462
+ "type": "object",
76463
+ "additionalProperties": {
76464
+ "type": "object"
76465
+ }
76466
+ }
76467
+ },
76468
+ "required": [
76469
+ "status",
76470
+ "message",
76471
+ "data"
76472
+ ]
76473
+ }
76474
+ }
76475
+ }
76476
+ }
76477
+ },
76478
+ "tags": [
76479
+ "Organization::Payments"
76480
+ ]
76481
+ }
76482
+ },
76427
76483
  "/preferences": {
76428
76484
  "get": {
76429
76485
  "operationId": "GetPreferences",
@@ -93033,11 +93089,12 @@
93033
93089
  "type": "string",
93034
93090
  "enum": [
93035
93091
  "admin",
93036
- "people",
93092
+ "account",
93093
+ "thread",
93094
+ "content",
93037
93095
  "activity",
93038
- "banner",
93039
- "chat",
93040
- "content"
93096
+ "event",
93097
+ "activation"
93041
93098
  ]
93042
93099
  },
93043
93100
  "SupportTicketType": {
@@ -93897,6 +93954,18 @@
93897
93954
  },
93898
93955
  "passId": {
93899
93956
  "type": "string"
93957
+ },
93958
+ "imageId": {
93959
+ "type": "string",
93960
+ "nullable": true
93961
+ },
93962
+ "image": {
93963
+ "allOf": [
93964
+ {
93965
+ "$ref": "#/components/schemas/BaseImage"
93966
+ }
93967
+ ],
93968
+ "nullable": true
93900
93969
  }
93901
93970
  },
93902
93971
  "required": [
@@ -93905,7 +93974,9 @@
93905
93974
  "eventActivationId",
93906
93975
  "eventActivation",
93907
93976
  "earnedPoints",
93908
- "passId"
93977
+ "passId",
93978
+ "imageId",
93979
+ "image"
93909
93980
  ]
93910
93981
  },
93911
93982
  "ActivationCompletion": {
@@ -93984,6 +94055,9 @@
93984
94055
  ],
93985
94056
  "nullable": true
93986
94057
  },
94058
+ "imageUpload": {
94059
+ "type": "boolean"
94060
+ },
93987
94061
  "_count": {
93988
94062
  "type": "object",
93989
94063
  "properties": {
@@ -94008,6 +94082,7 @@
94008
94082
  "accessLevel",
94009
94083
  "sortOrder",
94010
94084
  "survey",
94085
+ "imageUpload",
94011
94086
  "_count"
94012
94087
  ]
94013
94088
  },
@@ -94144,6 +94219,9 @@
94144
94219
  "pinned": {
94145
94220
  "type": "boolean"
94146
94221
  },
94222
+ "pinnedExplore": {
94223
+ "type": "boolean"
94224
+ },
94147
94225
  "giphyId": {
94148
94226
  "type": "string",
94149
94227
  "nullable": true
@@ -94217,6 +94295,7 @@
94217
94295
  "status",
94218
94296
  "featured",
94219
94297
  "pinned",
94298
+ "pinnedExplore",
94220
94299
  "giphyId",
94221
94300
  "imageId",
94222
94301
  "videoId",
@@ -112733,6 +112812,12 @@
112733
112812
  "featured": {
112734
112813
  "type": "boolean"
112735
112814
  },
112815
+ "pinned": {
112816
+ "type": "boolean"
112817
+ },
112818
+ "pinnedExplore": {
112819
+ "type": "boolean"
112820
+ },
112736
112821
  "imageId": {
112737
112822
  "type": "string",
112738
112823
  "nullable": true
@@ -112802,6 +112887,9 @@
112802
112887
  "pinned": {
112803
112888
  "type": "boolean"
112804
112889
  },
112890
+ "pinnedExplore": {
112891
+ "type": "boolean"
112892
+ },
112805
112893
  "imageId": {
112806
112894
  "type": "string",
112807
112895
  "nullable": true
@@ -113846,6 +113934,9 @@
113846
113934
  }
113847
113935
  ],
113848
113936
  "nullable": true
113937
+ },
113938
+ "imageUpload": {
113939
+ "type": "boolean"
113849
113940
  }
113850
113941
  },
113851
113942
  "required": [
@@ -113949,6 +114040,9 @@
113949
114040
  }
113950
114041
  ],
113951
114042
  "nullable": true
114043
+ },
114044
+ "imageUpload": {
114045
+ "type": "boolean"
113952
114046
  }
113953
114047
  }
113954
114048
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.30.1",
3
+ "version": "6.32.0",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",