@connectedxm/admin 6.23.7 → 6.24.1
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.d.cts
CHANGED
|
@@ -1000,6 +1000,7 @@ interface BaseEvent {
|
|
|
1000
1000
|
series: BaseSeries | null;
|
|
1001
1001
|
paymentIntegrationId: string | null;
|
|
1002
1002
|
paymentIntegration: BasePaymentIntegration | null;
|
|
1003
|
+
archived: boolean;
|
|
1003
1004
|
}
|
|
1004
1005
|
interface Event extends BaseEvent {
|
|
1005
1006
|
roundName: string | null;
|
|
@@ -5204,6 +5205,7 @@ interface EventCreateInputs {
|
|
|
5204
5205
|
eventEnd: string;
|
|
5205
5206
|
featured?: boolean;
|
|
5206
5207
|
visible?: boolean;
|
|
5208
|
+
archived?: boolean;
|
|
5207
5209
|
slug?: string | null;
|
|
5208
5210
|
internalRefId?: string | null;
|
|
5209
5211
|
longDescription?: string | null;
|
|
@@ -5260,6 +5262,7 @@ interface EventCreateInputs {
|
|
|
5260
5262
|
interface EventUpdateInputs {
|
|
5261
5263
|
featured?: boolean;
|
|
5262
5264
|
visible?: boolean;
|
|
5265
|
+
archived?: boolean;
|
|
5263
5266
|
name?: string | null;
|
|
5264
5267
|
eventType?: keyof typeof EventType | null;
|
|
5265
5268
|
slug?: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1000,6 +1000,7 @@ interface BaseEvent {
|
|
|
1000
1000
|
series: BaseSeries | null;
|
|
1001
1001
|
paymentIntegrationId: string | null;
|
|
1002
1002
|
paymentIntegration: BasePaymentIntegration | null;
|
|
1003
|
+
archived: boolean;
|
|
1003
1004
|
}
|
|
1004
1005
|
interface Event extends BaseEvent {
|
|
1005
1006
|
roundName: string | null;
|
|
@@ -5204,6 +5205,7 @@ interface EventCreateInputs {
|
|
|
5204
5205
|
eventEnd: string;
|
|
5205
5206
|
featured?: boolean;
|
|
5206
5207
|
visible?: boolean;
|
|
5208
|
+
archived?: boolean;
|
|
5207
5209
|
slug?: string | null;
|
|
5208
5210
|
internalRefId?: string | null;
|
|
5209
5211
|
longDescription?: string | null;
|
|
@@ -5260,6 +5262,7 @@ interface EventCreateInputs {
|
|
|
5260
5262
|
interface EventUpdateInputs {
|
|
5261
5263
|
featured?: boolean;
|
|
5262
5264
|
visible?: boolean;
|
|
5265
|
+
archived?: boolean;
|
|
5263
5266
|
name?: string | null;
|
|
5264
5267
|
eventType?: keyof typeof EventType | null;
|
|
5265
5268
|
slug?: string | null;
|
package/openapi.json
CHANGED
|
@@ -95532,6 +95532,9 @@
|
|
|
95532
95532
|
}
|
|
95533
95533
|
],
|
|
95534
95534
|
"nullable": true
|
|
95535
|
+
},
|
|
95536
|
+
"archived": {
|
|
95537
|
+
"type": "boolean"
|
|
95535
95538
|
}
|
|
95536
95539
|
},
|
|
95537
95540
|
"required": [
|
|
@@ -95568,7 +95571,8 @@
|
|
|
95568
95571
|
"seriesId",
|
|
95569
95572
|
"series",
|
|
95570
95573
|
"paymentIntegrationId",
|
|
95571
|
-
"paymentIntegration"
|
|
95574
|
+
"paymentIntegration",
|
|
95575
|
+
"archived"
|
|
95572
95576
|
]
|
|
95573
95577
|
},
|
|
95574
95578
|
"Event": {
|
|
@@ -113314,6 +113318,9 @@
|
|
|
113314
113318
|
"visible": {
|
|
113315
113319
|
"type": "boolean"
|
|
113316
113320
|
},
|
|
113321
|
+
"archived": {
|
|
113322
|
+
"type": "boolean"
|
|
113323
|
+
},
|
|
113317
113324
|
"slug": {
|
|
113318
113325
|
"type": "string",
|
|
113319
113326
|
"nullable": true
|
|
@@ -113566,6 +113573,9 @@
|
|
|
113566
113573
|
"visible": {
|
|
113567
113574
|
"type": "boolean"
|
|
113568
113575
|
},
|
|
113576
|
+
"archived": {
|
|
113577
|
+
"type": "boolean"
|
|
113578
|
+
},
|
|
113569
113579
|
"name": {
|
|
113570
113580
|
"type": "string",
|
|
113571
113581
|
"nullable": true
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description:
|
|
3
|
-
globs:
|
|
4
|
-
alwaysApply: false
|
|
5
|
-
---
|
|
6
|
-
When creating a Mutation file to interact with a put, post, delete endpoint in the API you should follow the same template.
|
|
7
|
-
|
|
8
|
-
1. First check for Params in the [params.ts](mdc:admin-sdk/src/params.ts) file
|
|
9
|
-
2. Then check for the interfaces in [interfaces.ts](mdc:admin-sdk/src/interfaces.ts) file
|
|
10
|
-
3. Create the file in the mutations folder
|
|
11
|
-
- a set of params
|
|
12
|
-
- the function to interact with the api
|
|
13
|
-
- the react-query mutation hook to use the function
|
|
14
|
-
|
|
15
|
-
Create Example: [useCreateAccount.ts](mdc:admin-sdk/src/mutations/account/useCreateAccount.ts)
|
|
16
|
-
Update Example: [useUpdateAccount.ts](mdc:admin-sdk/src/mutations/account/useUpdateAccount.ts)
|
|
17
|
-
Delete Example: [useDeleteAccount.ts](mdc:admin-sdk/src/mutations/account/useDeleteAccount.ts)
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description:
|
|
3
|
-
globs:
|
|
4
|
-
alwaysApply: false
|
|
5
|
-
---
|
|
6
|
-
When creating a Query function to interact with a get or list endpoint in the API you should follow the same template.
|
|
7
|
-
|
|
8
|
-
1. check or add the interfaces in [interfaces.ts](mdc:admin-sdk/src/interfaces.ts).ts file
|
|
9
|
-
2. Standard Parts of query file:
|
|
10
|
-
- a QueryKey Function
|
|
11
|
-
- a Setter function
|
|
12
|
-
- the function to interact with the api
|
|
13
|
-
- the react-query hook to use the function
|
|
14
|
-
|
|
15
|
-
Single Query Example: [useGetAccount.ts](mdc:admin-web/src/queries/accounts/useGetAccount.ts)
|
|
16
|
-
Infinite Query Example: [useGetAccounts.ts](mdc:admin-web/src/queries/accounts/useGetAccounts.ts)
|