@connectedxm/admin 7.2.3 → 7.2.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 +69 -16
- package/dist/index.d.cts +30 -12
- package/dist/index.d.ts +30 -12
- package/dist/index.js +65 -16
- package/openapi.json +102 -55
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1592,6 +1592,45 @@ var useGetAccountActivities = (accountId = "", status, params = {}, options = {}
|
|
|
1592
1592
|
);
|
|
1593
1593
|
};
|
|
1594
1594
|
|
|
1595
|
+
// src/queries/accounts/useGetAccountBookings.ts
|
|
1596
|
+
var ACCOUNT_BOOKINGS_QUERY_KEY = (accountId) => [
|
|
1597
|
+
...ACCOUNT_QUERY_KEY(accountId),
|
|
1598
|
+
"BOOKINGS"
|
|
1599
|
+
];
|
|
1600
|
+
var SET_ACCOUNT_BOOKINGS_QUERY_DATA = (client, keyParams, response) => {
|
|
1601
|
+
client.setQueryData(ACCOUNT_BOOKINGS_QUERY_KEY(...keyParams), response);
|
|
1602
|
+
};
|
|
1603
|
+
var GetAccountBookings = async ({
|
|
1604
|
+
accountId,
|
|
1605
|
+
pageParam,
|
|
1606
|
+
pageSize,
|
|
1607
|
+
orderBy,
|
|
1608
|
+
search,
|
|
1609
|
+
adminApiParams
|
|
1610
|
+
}) => {
|
|
1611
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
1612
|
+
const { data } = await adminApi.get(`/accounts/${accountId}/bookings`, {
|
|
1613
|
+
params: {
|
|
1614
|
+
page: pageParam || void 0,
|
|
1615
|
+
pageSize: pageSize || void 0,
|
|
1616
|
+
orderBy: orderBy || void 0,
|
|
1617
|
+
search: search || void 0
|
|
1618
|
+
}
|
|
1619
|
+
});
|
|
1620
|
+
return data;
|
|
1621
|
+
};
|
|
1622
|
+
var useGetAccountBookings = (accountId = "", params = {}, options = {}) => {
|
|
1623
|
+
return useConnectedInfiniteQuery(
|
|
1624
|
+
ACCOUNT_BOOKINGS_QUERY_KEY(accountId),
|
|
1625
|
+
(params2) => GetAccountBookings({ accountId, ...params2 }),
|
|
1626
|
+
params,
|
|
1627
|
+
{
|
|
1628
|
+
...options,
|
|
1629
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1630
|
+
}
|
|
1631
|
+
);
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1595
1634
|
// src/queries/accounts/useGetAccountComments.ts
|
|
1596
1635
|
var ACCOUNT_COMMENTS_QUERY_KEY = (accountId) => [
|
|
1597
1636
|
...ACCOUNT_QUERY_KEY(accountId),
|
|
@@ -1868,15 +1907,18 @@ var useGetAccountRegistrations = (accountId = "", params = {}, options = {}) =>
|
|
|
1868
1907
|
);
|
|
1869
1908
|
};
|
|
1870
1909
|
|
|
1871
|
-
// src/queries/accounts/
|
|
1872
|
-
var
|
|
1910
|
+
// src/queries/accounts/useGetAccountSupportTickets.ts
|
|
1911
|
+
var ACCOUNT_SUPPORT_TICKETS_QUERY_KEY = (accountId) => [
|
|
1873
1912
|
...ACCOUNT_QUERY_KEY(accountId),
|
|
1874
|
-
"
|
|
1913
|
+
"SUPPORT_TICKETS"
|
|
1875
1914
|
];
|
|
1876
|
-
var
|
|
1877
|
-
client.setQueryData(
|
|
1915
|
+
var SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA = (client, keyParams, response) => {
|
|
1916
|
+
client.setQueryData(
|
|
1917
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY(...keyParams),
|
|
1918
|
+
response
|
|
1919
|
+
);
|
|
1878
1920
|
};
|
|
1879
|
-
var
|
|
1921
|
+
var GetAccountSupportTickets = async ({
|
|
1880
1922
|
accountId,
|
|
1881
1923
|
pageParam,
|
|
1882
1924
|
pageSize,
|
|
@@ -1885,20 +1927,23 @@ var GetAccountBookings = async ({
|
|
|
1885
1927
|
adminApiParams
|
|
1886
1928
|
}) => {
|
|
1887
1929
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
1888
|
-
const { data } = await adminApi.get(
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1930
|
+
const { data } = await adminApi.get(
|
|
1931
|
+
`/accounts/${accountId}/supportTickets`,
|
|
1932
|
+
{
|
|
1933
|
+
params: {
|
|
1934
|
+
page: pageParam || void 0,
|
|
1935
|
+
pageSize: pageSize || void 0,
|
|
1936
|
+
orderBy: orderBy || void 0,
|
|
1937
|
+
search: search || void 0
|
|
1938
|
+
}
|
|
1894
1939
|
}
|
|
1895
|
-
|
|
1940
|
+
);
|
|
1896
1941
|
return data;
|
|
1897
1942
|
};
|
|
1898
|
-
var
|
|
1943
|
+
var useGetAccountSupportTickets = (accountId = "", params = {}, options = {}) => {
|
|
1899
1944
|
return useConnectedInfiniteQuery(
|
|
1900
|
-
|
|
1901
|
-
(params2) =>
|
|
1945
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY(accountId),
|
|
1946
|
+
(params2) => GetAccountSupportTickets({ accountId, ...params2 }),
|
|
1902
1947
|
params,
|
|
1903
1948
|
{
|
|
1904
1949
|
...options,
|
|
@@ -39948,6 +39993,7 @@ export {
|
|
|
39948
39993
|
ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
39949
39994
|
ACCOUNT_QUERY_KEY,
|
|
39950
39995
|
ACCOUNT_REGISTRATIONS_QUERY_KEY,
|
|
39996
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY,
|
|
39951
39997
|
ACCOUNT_THREADS_QUERY_KEY,
|
|
39952
39998
|
ACCOUNT_TIERS_QUERY_KEY,
|
|
39953
39999
|
ACTIVITIES_QUERY_KEY,
|
|
@@ -40705,6 +40751,7 @@ export {
|
|
|
40705
40751
|
GetAccountNotificationPreferences,
|
|
40706
40752
|
GetAccountPayments,
|
|
40707
40753
|
GetAccountRegistrations,
|
|
40754
|
+
GetAccountSupportTickets,
|
|
40708
40755
|
GetAccountThreads,
|
|
40709
40756
|
GetAccountTiers,
|
|
40710
40757
|
GetAccounts,
|
|
@@ -41483,6 +41530,7 @@ export {
|
|
|
41483
41530
|
SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
|
|
41484
41531
|
SET_ACCOUNT_QUERY_DATA,
|
|
41485
41532
|
SET_ACCOUNT_REGISTRATIONS_QUERY_DATA,
|
|
41533
|
+
SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA,
|
|
41486
41534
|
SET_ACCOUNT_THREADS_QUERY_DATA,
|
|
41487
41535
|
SET_ACCOUNT_TIERS_QUERY_DATA,
|
|
41488
41536
|
SET_ACTIVITIES_QUERY_DATA,
|
|
@@ -42672,6 +42720,7 @@ export {
|
|
|
42672
42720
|
useGetAccountNotificationPreferences,
|
|
42673
42721
|
useGetAccountPayments,
|
|
42674
42722
|
useGetAccountRegistrations,
|
|
42723
|
+
useGetAccountSupportTickets,
|
|
42675
42724
|
useGetAccountThreads,
|
|
42676
42725
|
useGetAccountTiers,
|
|
42677
42726
|
useGetAccounts,
|
package/openapi.json
CHANGED
|
@@ -4072,6 +4072,107 @@
|
|
|
4072
4072
|
]
|
|
4073
4073
|
}
|
|
4074
4074
|
},
|
|
4075
|
+
"/accounts/{accountId}/supportTickets": {
|
|
4076
|
+
"get": {
|
|
4077
|
+
"operationId": "GetAccountSupportTickets",
|
|
4078
|
+
"summary": "Get Account Support Tickets",
|
|
4079
|
+
"description": "Get Account Support Tickets endpoint",
|
|
4080
|
+
"parameters": [
|
|
4081
|
+
{
|
|
4082
|
+
"in": "path",
|
|
4083
|
+
"name": "accountId",
|
|
4084
|
+
"schema": {
|
|
4085
|
+
"type": "string"
|
|
4086
|
+
},
|
|
4087
|
+
"description": "The account identifier",
|
|
4088
|
+
"required": true
|
|
4089
|
+
},
|
|
4090
|
+
{
|
|
4091
|
+
"in": "query",
|
|
4092
|
+
"name": "page",
|
|
4093
|
+
"schema": {
|
|
4094
|
+
"type": "integer",
|
|
4095
|
+
"minimum": 1,
|
|
4096
|
+
"default": 1
|
|
4097
|
+
},
|
|
4098
|
+
"description": "Page number",
|
|
4099
|
+
"required": false
|
|
4100
|
+
},
|
|
4101
|
+
{
|
|
4102
|
+
"in": "query",
|
|
4103
|
+
"name": "pageSize",
|
|
4104
|
+
"schema": {
|
|
4105
|
+
"type": "integer",
|
|
4106
|
+
"minimum": 1,
|
|
4107
|
+
"maximum": 100,
|
|
4108
|
+
"default": 25
|
|
4109
|
+
},
|
|
4110
|
+
"description": "Number of items per page",
|
|
4111
|
+
"required": false
|
|
4112
|
+
},
|
|
4113
|
+
{
|
|
4114
|
+
"in": "query",
|
|
4115
|
+
"name": "orderBy",
|
|
4116
|
+
"schema": {
|
|
4117
|
+
"type": "string"
|
|
4118
|
+
},
|
|
4119
|
+
"description": "Field to order by",
|
|
4120
|
+
"required": false
|
|
4121
|
+
},
|
|
4122
|
+
{
|
|
4123
|
+
"in": "query",
|
|
4124
|
+
"name": "search",
|
|
4125
|
+
"schema": {
|
|
4126
|
+
"type": "string"
|
|
4127
|
+
},
|
|
4128
|
+
"description": "Search query",
|
|
4129
|
+
"required": false
|
|
4130
|
+
}
|
|
4131
|
+
],
|
|
4132
|
+
"responses": {
|
|
4133
|
+
"200": {
|
|
4134
|
+
"description": "Successful response",
|
|
4135
|
+
"content": {
|
|
4136
|
+
"application/json": {
|
|
4137
|
+
"schema": {
|
|
4138
|
+
"type": "object",
|
|
4139
|
+
"properties": {
|
|
4140
|
+
"status": {
|
|
4141
|
+
"type": "string",
|
|
4142
|
+
"enum": [
|
|
4143
|
+
"ok"
|
|
4144
|
+
]
|
|
4145
|
+
},
|
|
4146
|
+
"message": {
|
|
4147
|
+
"type": "string",
|
|
4148
|
+
"example": "Success message."
|
|
4149
|
+
},
|
|
4150
|
+
"data": {
|
|
4151
|
+
"type": "array",
|
|
4152
|
+
"items": {
|
|
4153
|
+
"$ref": "#/components/schemas/SupportTicket"
|
|
4154
|
+
}
|
|
4155
|
+
},
|
|
4156
|
+
"count": {
|
|
4157
|
+
"type": "integer",
|
|
4158
|
+
"example": 100
|
|
4159
|
+
}
|
|
4160
|
+
},
|
|
4161
|
+
"required": [
|
|
4162
|
+
"status",
|
|
4163
|
+
"message",
|
|
4164
|
+
"data"
|
|
4165
|
+
]
|
|
4166
|
+
}
|
|
4167
|
+
}
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
},
|
|
4171
|
+
"tags": [
|
|
4172
|
+
"Accounts"
|
|
4173
|
+
]
|
|
4174
|
+
}
|
|
4175
|
+
},
|
|
4075
4176
|
"/accounts/{accountId}/sync": {
|
|
4076
4177
|
"post": {
|
|
4077
4178
|
"operationId": "SyncAccount",
|
|
@@ -103750,14 +103851,6 @@
|
|
|
103750
103851
|
"items": {
|
|
103751
103852
|
"$ref": "#/components/schemas/BaseEventSessionQuestionChoice"
|
|
103752
103853
|
}
|
|
103753
|
-
},
|
|
103754
|
-
"price": {
|
|
103755
|
-
"type": "number",
|
|
103756
|
-
"nullable": true
|
|
103757
|
-
},
|
|
103758
|
-
"supply": {
|
|
103759
|
-
"type": "number",
|
|
103760
|
-
"nullable": true
|
|
103761
103854
|
}
|
|
103762
103855
|
},
|
|
103763
103856
|
"required": [
|
|
@@ -103781,9 +103874,7 @@
|
|
|
103781
103874
|
"locationOption",
|
|
103782
103875
|
"sortOrder",
|
|
103783
103876
|
"featured",
|
|
103784
|
-
"choices"
|
|
103785
|
-
"price",
|
|
103786
|
-
"supply"
|
|
103877
|
+
"choices"
|
|
103787
103878
|
]
|
|
103788
103879
|
},
|
|
103789
103880
|
"EventSessionQuestion": {
|
|
@@ -116460,28 +116551,6 @@
|
|
|
116460
116551
|
},
|
|
116461
116552
|
"nullable": true
|
|
116462
116553
|
},
|
|
116463
|
-
"price": {
|
|
116464
|
-
"oneOf": [
|
|
116465
|
-
{
|
|
116466
|
-
"type": "number"
|
|
116467
|
-
},
|
|
116468
|
-
{
|
|
116469
|
-
"type": "string"
|
|
116470
|
-
}
|
|
116471
|
-
],
|
|
116472
|
-
"nullable": true
|
|
116473
|
-
},
|
|
116474
|
-
"supply": {
|
|
116475
|
-
"oneOf": [
|
|
116476
|
-
{
|
|
116477
|
-
"type": "number"
|
|
116478
|
-
},
|
|
116479
|
-
{
|
|
116480
|
-
"type": "string"
|
|
116481
|
-
}
|
|
116482
|
-
],
|
|
116483
|
-
"nullable": true
|
|
116484
|
-
},
|
|
116485
116554
|
"searchListId": {
|
|
116486
116555
|
"type": "string",
|
|
116487
116556
|
"nullable": true
|
|
@@ -116604,28 +116673,6 @@
|
|
|
116604
116673
|
"featured": {
|
|
116605
116674
|
"type": "boolean"
|
|
116606
116675
|
},
|
|
116607
|
-
"price": {
|
|
116608
|
-
"oneOf": [
|
|
116609
|
-
{
|
|
116610
|
-
"type": "number"
|
|
116611
|
-
},
|
|
116612
|
-
{
|
|
116613
|
-
"type": "string"
|
|
116614
|
-
}
|
|
116615
|
-
],
|
|
116616
|
-
"nullable": true
|
|
116617
|
-
},
|
|
116618
|
-
"supply": {
|
|
116619
|
-
"oneOf": [
|
|
116620
|
-
{
|
|
116621
|
-
"type": "number"
|
|
116622
|
-
},
|
|
116623
|
-
{
|
|
116624
|
-
"type": "string"
|
|
116625
|
-
}
|
|
116626
|
-
],
|
|
116627
|
-
"nullable": true
|
|
116628
|
-
},
|
|
116629
116676
|
"searchListId": {
|
|
116630
116677
|
"type": "string",
|
|
116631
116678
|
"nullable": true
|