@connectedxm/admin 6.9.4 → 6.9.5
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.cjs +89 -0
- package/dist/index.d.cts +47 -1
- package/dist/index.d.ts +47 -1
- package/dist/index.js +83 -0
- package/openapi.json +245 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -521,6 +521,7 @@ var PaymentLineItemType = /* @__PURE__ */ ((PaymentLineItemType2) => {
|
|
|
521
521
|
PaymentLineItemType2["invoice"] = "invoice";
|
|
522
522
|
PaymentLineItemType2["booking"] = "booking";
|
|
523
523
|
PaymentLineItemType2["coupon"] = "coupon";
|
|
524
|
+
PaymentLineItemType2["series"] = "series";
|
|
524
525
|
PaymentLineItemType2["refund"] = "refund";
|
|
525
526
|
return PaymentLineItemType2;
|
|
526
527
|
})(PaymentLineItemType || {});
|
|
@@ -17636,6 +17637,43 @@ var useGetSeriesRegistrationPasses = (seriesId = "", registrationId = "", params
|
|
|
17636
17637
|
);
|
|
17637
17638
|
};
|
|
17638
17639
|
|
|
17640
|
+
// src/queries/series/registrations/useGetSeriesRegistrationPayments.ts
|
|
17641
|
+
var SERIES_REGISTRATION_PAYMENTS_QUERY_KEY = (seriesId, registrationId) => [...SERIES_REGISTRATION_QUERY_KEY(seriesId, registrationId), "PAYMENTS"];
|
|
17642
|
+
var GetSeriesRegistrationPayments = async ({
|
|
17643
|
+
seriesId,
|
|
17644
|
+
registrationId,
|
|
17645
|
+
pageParam,
|
|
17646
|
+
pageSize,
|
|
17647
|
+
orderBy,
|
|
17648
|
+
search,
|
|
17649
|
+
adminApiParams
|
|
17650
|
+
}) => {
|
|
17651
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
17652
|
+
const { data } = await adminApi.get(
|
|
17653
|
+
`/series/${seriesId}/registrations/${registrationId}/payments`,
|
|
17654
|
+
{
|
|
17655
|
+
params: {
|
|
17656
|
+
page: pageParam || void 0,
|
|
17657
|
+
pageSize: pageSize || void 0,
|
|
17658
|
+
orderBy: orderBy || void 0,
|
|
17659
|
+
search: search || void 0
|
|
17660
|
+
}
|
|
17661
|
+
}
|
|
17662
|
+
);
|
|
17663
|
+
return data;
|
|
17664
|
+
};
|
|
17665
|
+
var useGetSeriesRegistrationPayments = (seriesId = "", registrationId = "", params = {}, options = {}) => {
|
|
17666
|
+
return useConnectedInfiniteQuery(
|
|
17667
|
+
SERIES_REGISTRATION_PAYMENTS_QUERY_KEY(seriesId, registrationId),
|
|
17668
|
+
(params2) => GetSeriesRegistrationPayments({ seriesId, registrationId, ...params2 }),
|
|
17669
|
+
params,
|
|
17670
|
+
{
|
|
17671
|
+
...options,
|
|
17672
|
+
enabled: !!seriesId && !!registrationId && (options?.enabled ?? true)
|
|
17673
|
+
}
|
|
17674
|
+
);
|
|
17675
|
+
};
|
|
17676
|
+
|
|
17639
17677
|
// src/queries/series/useGetSeriesEvents.ts
|
|
17640
17678
|
var SERIES_EVENTS_QUERY_KEY = (seriesId) => [
|
|
17641
17679
|
...EVENT_QUERY_KEY(seriesId),
|
|
@@ -17678,6 +17716,45 @@ var useGetSeriesEvents = (seriesId = "", params = {}, options = {}) => {
|
|
|
17678
17716
|
);
|
|
17679
17717
|
};
|
|
17680
17718
|
|
|
17719
|
+
// src/queries/series/useGetSeriesPayments.ts
|
|
17720
|
+
var SERIES_PAYMENTS_QUERY_KEY = (seriesId) => [
|
|
17721
|
+
...SERIES_QUERY_KEY(seriesId),
|
|
17722
|
+
"PAYMENTS"
|
|
17723
|
+
];
|
|
17724
|
+
var GetSeriesPayments = async ({
|
|
17725
|
+
seriesId,
|
|
17726
|
+
pageParam,
|
|
17727
|
+
pageSize,
|
|
17728
|
+
orderBy,
|
|
17729
|
+
search,
|
|
17730
|
+
adminApiParams
|
|
17731
|
+
}) => {
|
|
17732
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
17733
|
+
const { data } = await adminApi.get(`/series/${seriesId}/payments`, {
|
|
17734
|
+
params: {
|
|
17735
|
+
page: pageParam || void 0,
|
|
17736
|
+
pageSize: pageSize || void 0,
|
|
17737
|
+
orderBy: orderBy || void 0,
|
|
17738
|
+
search: search || void 0
|
|
17739
|
+
}
|
|
17740
|
+
});
|
|
17741
|
+
return data;
|
|
17742
|
+
};
|
|
17743
|
+
var useGetSeriesPayments = (seriesId = "", params = {}, options = {}) => {
|
|
17744
|
+
return useConnectedInfiniteQuery(
|
|
17745
|
+
SERIES_PAYMENTS_QUERY_KEY(seriesId),
|
|
17746
|
+
(params2) => GetSeriesPayments({
|
|
17747
|
+
seriesId,
|
|
17748
|
+
...params2
|
|
17749
|
+
}),
|
|
17750
|
+
params,
|
|
17751
|
+
{
|
|
17752
|
+
...options,
|
|
17753
|
+
enabled: !!seriesId && (options.enabled ?? true)
|
|
17754
|
+
}
|
|
17755
|
+
);
|
|
17756
|
+
};
|
|
17757
|
+
|
|
17681
17758
|
// src/queries/sponsors/useGetLevels.ts
|
|
17682
17759
|
var LEVELS_QUERY_KEY = () => ["LEVELS"];
|
|
17683
17760
|
var SET_LEVELS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -37850,8 +37927,10 @@ export {
|
|
|
37850
37927
|
GetSeries,
|
|
37851
37928
|
GetSeriesEvents,
|
|
37852
37929
|
GetSeriesList,
|
|
37930
|
+
GetSeriesPayments,
|
|
37853
37931
|
GetSeriesRegistration,
|
|
37854
37932
|
GetSeriesRegistrationPasses,
|
|
37933
|
+
GetSeriesRegistrationPayments,
|
|
37855
37934
|
GetSeriesRegistrations,
|
|
37856
37935
|
GetStreamInput,
|
|
37857
37936
|
GetStreamInputOutput,
|
|
@@ -38140,9 +38219,11 @@ export {
|
|
|
38140
38219
|
SELF_QUERY_KEY,
|
|
38141
38220
|
SERIES_EVENTS_QUERY_KEY,
|
|
38142
38221
|
SERIES_LIST_QUERY_KEY,
|
|
38222
|
+
SERIES_PAYMENTS_QUERY_KEY,
|
|
38143
38223
|
SERIES_QUERY_KEY,
|
|
38144
38224
|
SERIES_REGISTRATIONS_QUERY_KEY,
|
|
38145
38225
|
SERIES_REGISTRATION_PASSES_QUERY_KEY,
|
|
38226
|
+
SERIES_REGISTRATION_PAYMENTS_QUERY_KEY,
|
|
38146
38227
|
SERIES_REGISTRATION_QUERY_KEY,
|
|
38147
38228
|
SET_ACCOUNTS_QUERY_DATA,
|
|
38148
38229
|
SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
|
|
@@ -39679,8 +39760,10 @@ export {
|
|
|
39679
39760
|
useGetSeries,
|
|
39680
39761
|
useGetSeriesEvents,
|
|
39681
39762
|
useGetSeriesList,
|
|
39763
|
+
useGetSeriesPayments,
|
|
39682
39764
|
useGetSeriesRegistration,
|
|
39683
39765
|
useGetSeriesRegistrationPasses,
|
|
39766
|
+
useGetSeriesRegistrationPayments,
|
|
39684
39767
|
useGetSeriesRegistrations,
|
|
39685
39768
|
useGetStreamInput,
|
|
39686
39769
|
useGetStreamInputOutput,
|
package/openapi.json
CHANGED
|
@@ -62014,6 +62014,107 @@
|
|
|
62014
62014
|
]
|
|
62015
62015
|
}
|
|
62016
62016
|
},
|
|
62017
|
+
"/series/{seriesId}/payments": {
|
|
62018
|
+
"get": {
|
|
62019
|
+
"operationId": "GetSeriesPayments",
|
|
62020
|
+
"summary": "Get Series Payments",
|
|
62021
|
+
"description": "Get Series Payments endpoint",
|
|
62022
|
+
"parameters": [
|
|
62023
|
+
{
|
|
62024
|
+
"in": "path",
|
|
62025
|
+
"name": "seriesId",
|
|
62026
|
+
"schema": {
|
|
62027
|
+
"type": "string"
|
|
62028
|
+
},
|
|
62029
|
+
"description": "The series identifier",
|
|
62030
|
+
"required": true
|
|
62031
|
+
},
|
|
62032
|
+
{
|
|
62033
|
+
"in": "query",
|
|
62034
|
+
"name": "page",
|
|
62035
|
+
"schema": {
|
|
62036
|
+
"type": "integer",
|
|
62037
|
+
"minimum": 1,
|
|
62038
|
+
"default": 1
|
|
62039
|
+
},
|
|
62040
|
+
"description": "Page number",
|
|
62041
|
+
"required": false
|
|
62042
|
+
},
|
|
62043
|
+
{
|
|
62044
|
+
"in": "query",
|
|
62045
|
+
"name": "pageSize",
|
|
62046
|
+
"schema": {
|
|
62047
|
+
"type": "integer",
|
|
62048
|
+
"minimum": 1,
|
|
62049
|
+
"maximum": 100,
|
|
62050
|
+
"default": 25
|
|
62051
|
+
},
|
|
62052
|
+
"description": "Number of items per page",
|
|
62053
|
+
"required": false
|
|
62054
|
+
},
|
|
62055
|
+
{
|
|
62056
|
+
"in": "query",
|
|
62057
|
+
"name": "orderBy",
|
|
62058
|
+
"schema": {
|
|
62059
|
+
"type": "string"
|
|
62060
|
+
},
|
|
62061
|
+
"description": "Field to order by",
|
|
62062
|
+
"required": false
|
|
62063
|
+
},
|
|
62064
|
+
{
|
|
62065
|
+
"in": "query",
|
|
62066
|
+
"name": "search",
|
|
62067
|
+
"schema": {
|
|
62068
|
+
"type": "string"
|
|
62069
|
+
},
|
|
62070
|
+
"description": "Search query",
|
|
62071
|
+
"required": false
|
|
62072
|
+
}
|
|
62073
|
+
],
|
|
62074
|
+
"responses": {
|
|
62075
|
+
"200": {
|
|
62076
|
+
"description": "Successful response",
|
|
62077
|
+
"content": {
|
|
62078
|
+
"application/json": {
|
|
62079
|
+
"schema": {
|
|
62080
|
+
"type": "object",
|
|
62081
|
+
"properties": {
|
|
62082
|
+
"status": {
|
|
62083
|
+
"type": "string",
|
|
62084
|
+
"enum": [
|
|
62085
|
+
"ok"
|
|
62086
|
+
]
|
|
62087
|
+
},
|
|
62088
|
+
"message": {
|
|
62089
|
+
"type": "string",
|
|
62090
|
+
"example": "Success message."
|
|
62091
|
+
},
|
|
62092
|
+
"data": {
|
|
62093
|
+
"type": "array",
|
|
62094
|
+
"items": {
|
|
62095
|
+
"$ref": "#/components/schemas/Payment"
|
|
62096
|
+
}
|
|
62097
|
+
},
|
|
62098
|
+
"count": {
|
|
62099
|
+
"type": "integer",
|
|
62100
|
+
"example": 100
|
|
62101
|
+
}
|
|
62102
|
+
},
|
|
62103
|
+
"required": [
|
|
62104
|
+
"status",
|
|
62105
|
+
"message",
|
|
62106
|
+
"data"
|
|
62107
|
+
]
|
|
62108
|
+
}
|
|
62109
|
+
}
|
|
62110
|
+
}
|
|
62111
|
+
}
|
|
62112
|
+
},
|
|
62113
|
+
"tags": [
|
|
62114
|
+
"Series"
|
|
62115
|
+
]
|
|
62116
|
+
}
|
|
62117
|
+
},
|
|
62017
62118
|
"/series/{seriesId}/registrations": {
|
|
62018
62119
|
"get": {
|
|
62019
62120
|
"operationId": "GetSeriesRegistrations",
|
|
@@ -62481,6 +62582,113 @@
|
|
|
62481
62582
|
]
|
|
62482
62583
|
}
|
|
62483
62584
|
},
|
|
62585
|
+
"/series/{seriesId}/registrations/{registrationId}/payments": {
|
|
62586
|
+
"get": {
|
|
62587
|
+
"operationId": "GetSeriesRegistrationPayments",
|
|
62588
|
+
"summary": "Get Series Registration Payments",
|
|
62589
|
+
"description": "Get Series Registration Payments endpoint",
|
|
62590
|
+
"parameters": [
|
|
62591
|
+
{
|
|
62592
|
+
"in": "path",
|
|
62593
|
+
"name": "seriesId",
|
|
62594
|
+
"schema": {
|
|
62595
|
+
"type": "string"
|
|
62596
|
+
},
|
|
62597
|
+
"description": "The series identifier",
|
|
62598
|
+
"required": true
|
|
62599
|
+
},
|
|
62600
|
+
{
|
|
62601
|
+
"in": "path",
|
|
62602
|
+
"name": "registrationId",
|
|
62603
|
+
"schema": {
|
|
62604
|
+
"type": "string"
|
|
62605
|
+
},
|
|
62606
|
+
"description": "The registration identifier",
|
|
62607
|
+
"required": true
|
|
62608
|
+
},
|
|
62609
|
+
{
|
|
62610
|
+
"in": "query",
|
|
62611
|
+
"name": "page",
|
|
62612
|
+
"schema": {
|
|
62613
|
+
"type": "integer",
|
|
62614
|
+
"minimum": 1,
|
|
62615
|
+
"default": 1
|
|
62616
|
+
},
|
|
62617
|
+
"description": "Page number",
|
|
62618
|
+
"required": false
|
|
62619
|
+
},
|
|
62620
|
+
{
|
|
62621
|
+
"in": "query",
|
|
62622
|
+
"name": "pageSize",
|
|
62623
|
+
"schema": {
|
|
62624
|
+
"type": "integer",
|
|
62625
|
+
"minimum": 1,
|
|
62626
|
+
"maximum": 100,
|
|
62627
|
+
"default": 25
|
|
62628
|
+
},
|
|
62629
|
+
"description": "Number of items per page",
|
|
62630
|
+
"required": false
|
|
62631
|
+
},
|
|
62632
|
+
{
|
|
62633
|
+
"in": "query",
|
|
62634
|
+
"name": "orderBy",
|
|
62635
|
+
"schema": {
|
|
62636
|
+
"type": "string"
|
|
62637
|
+
},
|
|
62638
|
+
"description": "Field to order by",
|
|
62639
|
+
"required": false
|
|
62640
|
+
},
|
|
62641
|
+
{
|
|
62642
|
+
"in": "query",
|
|
62643
|
+
"name": "search",
|
|
62644
|
+
"schema": {
|
|
62645
|
+
"type": "string"
|
|
62646
|
+
},
|
|
62647
|
+
"description": "Search query",
|
|
62648
|
+
"required": false
|
|
62649
|
+
}
|
|
62650
|
+
],
|
|
62651
|
+
"responses": {
|
|
62652
|
+
"200": {
|
|
62653
|
+
"description": "Successful response",
|
|
62654
|
+
"content": {
|
|
62655
|
+
"application/json": {
|
|
62656
|
+
"schema": {
|
|
62657
|
+
"type": "object",
|
|
62658
|
+
"properties": {
|
|
62659
|
+
"status": {
|
|
62660
|
+
"type": "string",
|
|
62661
|
+
"enum": [
|
|
62662
|
+
"ok"
|
|
62663
|
+
]
|
|
62664
|
+
},
|
|
62665
|
+
"message": {
|
|
62666
|
+
"type": "string",
|
|
62667
|
+
"example": "Success message."
|
|
62668
|
+
},
|
|
62669
|
+
"data": {
|
|
62670
|
+
"type": "object"
|
|
62671
|
+
},
|
|
62672
|
+
"count": {
|
|
62673
|
+
"type": "integer",
|
|
62674
|
+
"example": 100
|
|
62675
|
+
}
|
|
62676
|
+
},
|
|
62677
|
+
"required": [
|
|
62678
|
+
"status",
|
|
62679
|
+
"message",
|
|
62680
|
+
"data"
|
|
62681
|
+
]
|
|
62682
|
+
}
|
|
62683
|
+
}
|
|
62684
|
+
}
|
|
62685
|
+
}
|
|
62686
|
+
},
|
|
62687
|
+
"tags": [
|
|
62688
|
+
"Series::Registrations"
|
|
62689
|
+
]
|
|
62690
|
+
}
|
|
62691
|
+
},
|
|
62484
62692
|
"/streams": {
|
|
62485
62693
|
"get": {
|
|
62486
62694
|
"operationId": "GetStreamInputs",
|
|
@@ -79229,6 +79437,10 @@
|
|
|
79229
79437
|
"type": "string",
|
|
79230
79438
|
"nullable": true
|
|
79231
79439
|
},
|
|
79440
|
+
"seriesId": {
|
|
79441
|
+
"type": "string",
|
|
79442
|
+
"nullable": true
|
|
79443
|
+
},
|
|
79232
79444
|
"lineItems": {
|
|
79233
79445
|
"type": "array",
|
|
79234
79446
|
"items": {
|
|
@@ -79266,6 +79478,7 @@
|
|
|
79266
79478
|
"membershipId",
|
|
79267
79479
|
"couponId",
|
|
79268
79480
|
"invoiceId",
|
|
79481
|
+
"seriesId",
|
|
79269
79482
|
"lineItems",
|
|
79270
79483
|
"createdAt"
|
|
79271
79484
|
]
|
|
@@ -79440,6 +79653,14 @@
|
|
|
79440
79653
|
],
|
|
79441
79654
|
"nullable": true
|
|
79442
79655
|
},
|
|
79656
|
+
"series": {
|
|
79657
|
+
"allOf": [
|
|
79658
|
+
{
|
|
79659
|
+
"$ref": "#/components/schemas/BaseSeries"
|
|
79660
|
+
}
|
|
79661
|
+
],
|
|
79662
|
+
"nullable": true
|
|
79663
|
+
},
|
|
79443
79664
|
"metadata": {
|
|
79444
79665
|
"type": "object"
|
|
79445
79666
|
},
|
|
@@ -79475,6 +79696,7 @@
|
|
|
79475
79696
|
"space",
|
|
79476
79697
|
"coupon",
|
|
79477
79698
|
"invoice",
|
|
79699
|
+
"series",
|
|
79478
79700
|
"lineItems"
|
|
79479
79701
|
]
|
|
79480
79702
|
}
|
|
@@ -79492,6 +79714,7 @@
|
|
|
79492
79714
|
"invoice",
|
|
79493
79715
|
"booking",
|
|
79494
79716
|
"coupon",
|
|
79717
|
+
"series",
|
|
79495
79718
|
"refund"
|
|
79496
79719
|
]
|
|
79497
79720
|
},
|
|
@@ -79662,6 +79885,14 @@
|
|
|
79662
79885
|
],
|
|
79663
79886
|
"nullable": true
|
|
79664
79887
|
},
|
|
79888
|
+
"seriesRegistration": {
|
|
79889
|
+
"allOf": [
|
|
79890
|
+
{
|
|
79891
|
+
"$ref": "#/components/schemas/BaseSeriesRegistration"
|
|
79892
|
+
}
|
|
79893
|
+
],
|
|
79894
|
+
"nullable": true
|
|
79895
|
+
},
|
|
79665
79896
|
"payment": {
|
|
79666
79897
|
"$ref": "#/components/schemas/BasePayment"
|
|
79667
79898
|
}
|
|
@@ -79674,6 +79905,7 @@
|
|
|
79674
79905
|
"access",
|
|
79675
79906
|
"booking",
|
|
79676
79907
|
"coupon",
|
|
79908
|
+
"seriesRegistration",
|
|
79677
79909
|
"payment"
|
|
79678
79910
|
]
|
|
79679
79911
|
}
|
|
@@ -81305,11 +81537,23 @@
|
|
|
81305
81537
|
},
|
|
81306
81538
|
"updatedAt": {
|
|
81307
81539
|
"type": "string"
|
|
81540
|
+
},
|
|
81541
|
+
"_count": {
|
|
81542
|
+
"type": "object",
|
|
81543
|
+
"properties": {
|
|
81544
|
+
"passes": {
|
|
81545
|
+
"type": "number"
|
|
81546
|
+
}
|
|
81547
|
+
},
|
|
81548
|
+
"required": [
|
|
81549
|
+
"passes"
|
|
81550
|
+
]
|
|
81308
81551
|
}
|
|
81309
81552
|
},
|
|
81310
81553
|
"required": [
|
|
81311
81554
|
"createdAt",
|
|
81312
|
-
"updatedAt"
|
|
81555
|
+
"updatedAt",
|
|
81556
|
+
"_count"
|
|
81313
81557
|
]
|
|
81314
81558
|
}
|
|
81315
81559
|
]
|