@greensecurity/javascript-sdk 0.40.8-beta.2 → 0.40.8-beta.21

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.
Files changed (161) hide show
  1. package/README.md +9 -0
  2. package/dist/commonjs/__tests__/alerts.test.d.ts +2 -0
  3. package/dist/commonjs/__tests__/alerts.test.d.ts.map +1 -0
  4. package/dist/commonjs/__tests__/alerts.test.js +51 -0
  5. package/dist/commonjs/__tests__/alerts.test.js.map +1 -0
  6. package/dist/commonjs/__tests__/zones.test.js +4 -28
  7. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  8. package/dist/commonjs/funcs/alertsListAlerts.d.ts +21 -0
  9. package/dist/commonjs/funcs/alertsListAlerts.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/alertsListAlerts.js +154 -0
  11. package/dist/commonjs/funcs/alertsListAlerts.js.map +1 -0
  12. package/dist/commonjs/funcs/alertsUpdateUserAlerts.d.ts +18 -0
  13. package/dist/commonjs/funcs/alertsUpdateUserAlerts.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/alertsUpdateUserAlerts.js +117 -0
  15. package/dist/commonjs/funcs/alertsUpdateUserAlerts.js.map +1 -0
  16. package/dist/commonjs/lib/config.d.ts +3 -3
  17. package/dist/commonjs/lib/config.js +3 -3
  18. package/dist/commonjs/lib/config.js.map +1 -1
  19. package/dist/commonjs/models/components/alert.d.ts +79 -0
  20. package/dist/commonjs/models/components/alert.d.ts.map +1 -0
  21. package/dist/commonjs/models/components/alert.js +123 -0
  22. package/dist/commonjs/models/components/alert.js.map +1 -0
  23. package/dist/commonjs/models/components/facilitycalendarsummary.d.ts +66 -0
  24. package/dist/commonjs/models/components/facilitycalendarsummary.d.ts.map +1 -0
  25. package/dist/commonjs/models/components/facilitycalendarsummary.js +126 -0
  26. package/dist/commonjs/models/components/facilitycalendarsummary.js.map +1 -0
  27. package/dist/commonjs/models/components/index.d.ts +2 -0
  28. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/index.js +2 -0
  30. package/dist/commonjs/models/components/index.js.map +1 -1
  31. package/dist/commonjs/models/components/userlocation.d.ts +1 -5
  32. package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/userlocation.js +2 -3
  34. package/dist/commonjs/models/components/userlocation.js.map +1 -1
  35. package/dist/commonjs/models/components/vendor.d.ts +3 -2
  36. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/vendor.js +3 -2
  38. package/dist/commonjs/models/components/vendor.js.map +1 -1
  39. package/dist/commonjs/models/operations/index.d.ts +2 -0
  40. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  41. package/dist/commonjs/models/operations/index.js +2 -0
  42. package/dist/commonjs/models/operations/index.js.map +1 -1
  43. package/dist/commonjs/models/operations/listalerts.d.ts +106 -0
  44. package/dist/commonjs/models/operations/listalerts.d.ts.map +1 -0
  45. package/dist/commonjs/models/operations/listalerts.js +149 -0
  46. package/dist/commonjs/models/operations/listalerts.js.map +1 -0
  47. package/dist/commonjs/models/operations/updateuseralerts.d.ts +57 -0
  48. package/dist/commonjs/models/operations/updateuseralerts.d.ts.map +1 -0
  49. package/dist/commonjs/models/operations/updateuseralerts.js +105 -0
  50. package/dist/commonjs/models/operations/updateuseralerts.js.map +1 -0
  51. package/dist/commonjs/react-query/alertsListAlerts.d.ts +75 -0
  52. package/dist/commonjs/react-query/alertsListAlerts.d.ts.map +1 -0
  53. package/dist/commonjs/react-query/alertsListAlerts.js +150 -0
  54. package/dist/commonjs/react-query/alertsListAlerts.js.map +1 -0
  55. package/dist/commonjs/react-query/alertsUpdateUserAlerts.d.ts +23 -0
  56. package/dist/commonjs/react-query/alertsUpdateUserAlerts.d.ts.map +1 -0
  57. package/dist/commonjs/react-query/alertsUpdateUserAlerts.js +47 -0
  58. package/dist/commonjs/react-query/alertsUpdateUserAlerts.js.map +1 -0
  59. package/dist/commonjs/react-query/index.d.ts +2 -0
  60. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  61. package/dist/commonjs/react-query/index.js +2 -0
  62. package/dist/commonjs/react-query/index.js.map +1 -1
  63. package/dist/commonjs/sdk/alerts.d.ts +22 -0
  64. package/dist/commonjs/sdk/alerts.d.ts.map +1 -0
  65. package/dist/commonjs/sdk/alerts.js +33 -0
  66. package/dist/commonjs/sdk/alerts.js.map +1 -0
  67. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  68. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  69. package/dist/commonjs/sdk/sdk.js +4 -0
  70. package/dist/commonjs/sdk/sdk.js.map +1 -1
  71. package/dist/esm/__tests__/alerts.test.d.ts +2 -0
  72. package/dist/esm/__tests__/alerts.test.d.ts.map +1 -0
  73. package/dist/esm/__tests__/alerts.test.js +49 -0
  74. package/dist/esm/__tests__/alerts.test.js.map +1 -0
  75. package/dist/esm/__tests__/zones.test.js +4 -28
  76. package/dist/esm/__tests__/zones.test.js.map +1 -1
  77. package/dist/esm/funcs/alertsListAlerts.d.ts +21 -0
  78. package/dist/esm/funcs/alertsListAlerts.d.ts.map +1 -0
  79. package/dist/esm/funcs/alertsListAlerts.js +118 -0
  80. package/dist/esm/funcs/alertsListAlerts.js.map +1 -0
  81. package/dist/esm/funcs/alertsUpdateUserAlerts.d.ts +18 -0
  82. package/dist/esm/funcs/alertsUpdateUserAlerts.d.ts.map +1 -0
  83. package/dist/esm/funcs/alertsUpdateUserAlerts.js +81 -0
  84. package/dist/esm/funcs/alertsUpdateUserAlerts.js.map +1 -0
  85. package/dist/esm/lib/config.d.ts +3 -3
  86. package/dist/esm/lib/config.js +3 -3
  87. package/dist/esm/lib/config.js.map +1 -1
  88. package/dist/esm/models/components/alert.d.ts +79 -0
  89. package/dist/esm/models/components/alert.d.ts.map +1 -0
  90. package/dist/esm/models/components/alert.js +85 -0
  91. package/dist/esm/models/components/alert.js.map +1 -0
  92. package/dist/esm/models/components/facilitycalendarsummary.d.ts +66 -0
  93. package/dist/esm/models/components/facilitycalendarsummary.d.ts.map +1 -0
  94. package/dist/esm/models/components/facilitycalendarsummary.js +86 -0
  95. package/dist/esm/models/components/facilitycalendarsummary.js.map +1 -0
  96. package/dist/esm/models/components/index.d.ts +2 -0
  97. package/dist/esm/models/components/index.d.ts.map +1 -1
  98. package/dist/esm/models/components/index.js +2 -0
  99. package/dist/esm/models/components/index.js.map +1 -1
  100. package/dist/esm/models/components/userlocation.d.ts +1 -5
  101. package/dist/esm/models/components/userlocation.d.ts.map +1 -1
  102. package/dist/esm/models/components/userlocation.js +2 -3
  103. package/dist/esm/models/components/userlocation.js.map +1 -1
  104. package/dist/esm/models/components/vendor.d.ts +3 -2
  105. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  106. package/dist/esm/models/components/vendor.js +3 -2
  107. package/dist/esm/models/components/vendor.js.map +1 -1
  108. package/dist/esm/models/operations/index.d.ts +2 -0
  109. package/dist/esm/models/operations/index.d.ts.map +1 -1
  110. package/dist/esm/models/operations/index.js +2 -0
  111. package/dist/esm/models/operations/index.js.map +1 -1
  112. package/dist/esm/models/operations/listalerts.d.ts +106 -0
  113. package/dist/esm/models/operations/listalerts.d.ts.map +1 -0
  114. package/dist/esm/models/operations/listalerts.js +107 -0
  115. package/dist/esm/models/operations/listalerts.js.map +1 -0
  116. package/dist/esm/models/operations/updateuseralerts.d.ts +57 -0
  117. package/dist/esm/models/operations/updateuseralerts.d.ts.map +1 -0
  118. package/dist/esm/models/operations/updateuseralerts.js +65 -0
  119. package/dist/esm/models/operations/updateuseralerts.js.map +1 -0
  120. package/dist/esm/react-query/alertsListAlerts.d.ts +75 -0
  121. package/dist/esm/react-query/alertsListAlerts.d.ts.map +1 -0
  122. package/dist/esm/react-query/alertsListAlerts.js +137 -0
  123. package/dist/esm/react-query/alertsListAlerts.js.map +1 -0
  124. package/dist/esm/react-query/alertsUpdateUserAlerts.d.ts +23 -0
  125. package/dist/esm/react-query/alertsUpdateUserAlerts.d.ts.map +1 -0
  126. package/dist/esm/react-query/alertsUpdateUserAlerts.js +42 -0
  127. package/dist/esm/react-query/alertsUpdateUserAlerts.js.map +1 -0
  128. package/dist/esm/react-query/index.d.ts +2 -0
  129. package/dist/esm/react-query/index.d.ts.map +1 -1
  130. package/dist/esm/react-query/index.js +2 -0
  131. package/dist/esm/react-query/index.js.map +1 -1
  132. package/dist/esm/sdk/alerts.d.ts +22 -0
  133. package/dist/esm/sdk/alerts.d.ts.map +1 -0
  134. package/dist/esm/sdk/alerts.js +29 -0
  135. package/dist/esm/sdk/alerts.js.map +1 -0
  136. package/dist/esm/sdk/sdk.d.ts +3 -0
  137. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  138. package/dist/esm/sdk/sdk.js +4 -0
  139. package/dist/esm/sdk/sdk.js.map +1 -1
  140. package/examples/package-lock.json +1 -1
  141. package/examples/vendorsCreateVendorRegistration.example.ts +1 -1
  142. package/jsr.json +1 -1
  143. package/package.json +1 -1
  144. package/src/__tests__/alerts.test.ts +55 -0
  145. package/src/__tests__/zones.test.ts +4 -28
  146. package/src/funcs/alertsListAlerts.ts +245 -0
  147. package/src/funcs/alertsUpdateUserAlerts.ts +170 -0
  148. package/src/lib/config.ts +3 -3
  149. package/src/models/components/alert.ts +141 -0
  150. package/src/models/components/facilitycalendarsummary.ts +182 -0
  151. package/src/models/components/index.ts +2 -0
  152. package/src/models/components/userlocation.ts +3 -7
  153. package/src/models/components/vendor.ts +13 -4
  154. package/src/models/operations/index.ts +2 -0
  155. package/src/models/operations/listalerts.ts +234 -0
  156. package/src/models/operations/updateuseralerts.ts +140 -0
  157. package/src/react-query/alertsListAlerts.ts +308 -0
  158. package/src/react-query/alertsUpdateUserAlerts.ts +89 -0
  159. package/src/react-query/index.ts +2 -0
  160. package/src/sdk/alerts.ts +46 -0
  161. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,106 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type ListAlertsRequest = {
6
+ /**
7
+ * A comma-separated list of object attributes to sort on.
8
+ */
9
+ sort?: string | null | undefined;
10
+ /**
11
+ * Sort desc
12
+ */
13
+ desc?: components.Desc | undefined;
14
+ /**
15
+ * A 1-based offset for which page to request (defaults to 1)
16
+ */
17
+ page?: number | undefined;
18
+ /**
19
+ * Number of items to show in a given page
20
+ */
21
+ itemsPerPage?: number | undefined;
22
+ };
23
+ /**
24
+ * The request was successful, and the server has returned the requested resource in the response body.
25
+ */
26
+ export type ListAlertsResponseBody = {
27
+ /**
28
+ * Pagination information for a pageable list
29
+ */
30
+ pager: components.Pager;
31
+ items: Array<components.Alert>;
32
+ };
33
+ export type ListAlertsResponse = {
34
+ result: ListAlertsResponseBody;
35
+ };
36
+ /** @internal */
37
+ export declare const ListAlertsRequest$inboundSchema: z.ZodType<ListAlertsRequest, z.ZodTypeDef, unknown>;
38
+ /** @internal */
39
+ export type ListAlertsRequest$Outbound = {
40
+ sort?: string | null | undefined;
41
+ desc?: components.Desc$Outbound | undefined;
42
+ page?: number | undefined;
43
+ items_per_page?: number | undefined;
44
+ };
45
+ /** @internal */
46
+ export declare const ListAlertsRequest$outboundSchema: z.ZodType<ListAlertsRequest$Outbound, z.ZodTypeDef, ListAlertsRequest>;
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ export declare namespace ListAlertsRequest$ {
52
+ /** @deprecated use `ListAlertsRequest$inboundSchema` instead. */
53
+ const inboundSchema: z.ZodType<ListAlertsRequest, z.ZodTypeDef, unknown>;
54
+ /** @deprecated use `ListAlertsRequest$outboundSchema` instead. */
55
+ const outboundSchema: z.ZodType<ListAlertsRequest$Outbound, z.ZodTypeDef, ListAlertsRequest>;
56
+ /** @deprecated use `ListAlertsRequest$Outbound` instead. */
57
+ type Outbound = ListAlertsRequest$Outbound;
58
+ }
59
+ export declare function listAlertsRequestToJSON(listAlertsRequest: ListAlertsRequest): string;
60
+ export declare function listAlertsRequestFromJSON(jsonString: string): SafeParseResult<ListAlertsRequest, SDKValidationError>;
61
+ /** @internal */
62
+ export declare const ListAlertsResponseBody$inboundSchema: z.ZodType<ListAlertsResponseBody, z.ZodTypeDef, unknown>;
63
+ /** @internal */
64
+ export type ListAlertsResponseBody$Outbound = {
65
+ pager: components.Pager$Outbound;
66
+ items: Array<components.Alert$Outbound>;
67
+ };
68
+ /** @internal */
69
+ export declare const ListAlertsResponseBody$outboundSchema: z.ZodType<ListAlertsResponseBody$Outbound, z.ZodTypeDef, ListAlertsResponseBody>;
70
+ /**
71
+ * @internal
72
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
+ */
74
+ export declare namespace ListAlertsResponseBody$ {
75
+ /** @deprecated use `ListAlertsResponseBody$inboundSchema` instead. */
76
+ const inboundSchema: z.ZodType<ListAlertsResponseBody, z.ZodTypeDef, unknown>;
77
+ /** @deprecated use `ListAlertsResponseBody$outboundSchema` instead. */
78
+ const outboundSchema: z.ZodType<ListAlertsResponseBody$Outbound, z.ZodTypeDef, ListAlertsResponseBody>;
79
+ /** @deprecated use `ListAlertsResponseBody$Outbound` instead. */
80
+ type Outbound = ListAlertsResponseBody$Outbound;
81
+ }
82
+ export declare function listAlertsResponseBodyToJSON(listAlertsResponseBody: ListAlertsResponseBody): string;
83
+ export declare function listAlertsResponseBodyFromJSON(jsonString: string): SafeParseResult<ListAlertsResponseBody, SDKValidationError>;
84
+ /** @internal */
85
+ export declare const ListAlertsResponse$inboundSchema: z.ZodType<ListAlertsResponse, z.ZodTypeDef, unknown>;
86
+ /** @internal */
87
+ export type ListAlertsResponse$Outbound = {
88
+ Result: ListAlertsResponseBody$Outbound;
89
+ };
90
+ /** @internal */
91
+ export declare const ListAlertsResponse$outboundSchema: z.ZodType<ListAlertsResponse$Outbound, z.ZodTypeDef, ListAlertsResponse>;
92
+ /**
93
+ * @internal
94
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
95
+ */
96
+ export declare namespace ListAlertsResponse$ {
97
+ /** @deprecated use `ListAlertsResponse$inboundSchema` instead. */
98
+ const inboundSchema: z.ZodType<ListAlertsResponse, z.ZodTypeDef, unknown>;
99
+ /** @deprecated use `ListAlertsResponse$outboundSchema` instead. */
100
+ const outboundSchema: z.ZodType<ListAlertsResponse$Outbound, z.ZodTypeDef, ListAlertsResponse>;
101
+ /** @deprecated use `ListAlertsResponse$Outbound` instead. */
102
+ type Outbound = ListAlertsResponse$Outbound;
103
+ }
104
+ export declare function listAlertsResponseToJSON(listAlertsResponse: ListAlertsResponse): string;
105
+ export declare function listAlertsResponseFromJSON(jsonString: string): SafeParseResult<ListAlertsResponse, SDKValidationError>;
106
+ //# sourceMappingURL=listalerts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listalerts.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listalerts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,KAAK,EAAE,UAAU,CAA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B,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -0,0 +1,107 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as components from "../components/index.js";
8
+ /** @internal */
9
+ export const ListAlertsRequest$inboundSchema = z.object({
10
+ sort: z.nullable(z.string()).optional(),
11
+ desc: components.Desc$inboundSchema.optional(),
12
+ page: z.number().int().optional(),
13
+ items_per_page: z.number().int().optional(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ "items_per_page": "itemsPerPage",
17
+ });
18
+ });
19
+ /** @internal */
20
+ export const ListAlertsRequest$outboundSchema = z.object({
21
+ sort: z.nullable(z.string()).optional(),
22
+ desc: components.Desc$outboundSchema.optional(),
23
+ page: z.number().int().optional(),
24
+ itemsPerPage: z.number().int().optional(),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ itemsPerPage: "items_per_page",
28
+ });
29
+ });
30
+ /**
31
+ * @internal
32
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
33
+ */
34
+ export var ListAlertsRequest$;
35
+ (function (ListAlertsRequest$) {
36
+ /** @deprecated use `ListAlertsRequest$inboundSchema` instead. */
37
+ ListAlertsRequest$.inboundSchema = ListAlertsRequest$inboundSchema;
38
+ /** @deprecated use `ListAlertsRequest$outboundSchema` instead. */
39
+ ListAlertsRequest$.outboundSchema = ListAlertsRequest$outboundSchema;
40
+ })(ListAlertsRequest$ || (ListAlertsRequest$ = {}));
41
+ export function listAlertsRequestToJSON(listAlertsRequest) {
42
+ return JSON.stringify(ListAlertsRequest$outboundSchema.parse(listAlertsRequest));
43
+ }
44
+ export function listAlertsRequestFromJSON(jsonString) {
45
+ return safeParse(jsonString, (x) => ListAlertsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAlertsRequest' from JSON`);
46
+ }
47
+ /** @internal */
48
+ export const ListAlertsResponseBody$inboundSchema = z.object({
49
+ pager: components.Pager$inboundSchema,
50
+ items: z.array(components.Alert$inboundSchema),
51
+ });
52
+ /** @internal */
53
+ export const ListAlertsResponseBody$outboundSchema = z.object({
54
+ pager: components.Pager$outboundSchema,
55
+ items: z.array(components.Alert$outboundSchema),
56
+ });
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export var ListAlertsResponseBody$;
62
+ (function (ListAlertsResponseBody$) {
63
+ /** @deprecated use `ListAlertsResponseBody$inboundSchema` instead. */
64
+ ListAlertsResponseBody$.inboundSchema = ListAlertsResponseBody$inboundSchema;
65
+ /** @deprecated use `ListAlertsResponseBody$outboundSchema` instead. */
66
+ ListAlertsResponseBody$.outboundSchema = ListAlertsResponseBody$outboundSchema;
67
+ })(ListAlertsResponseBody$ || (ListAlertsResponseBody$ = {}));
68
+ export function listAlertsResponseBodyToJSON(listAlertsResponseBody) {
69
+ return JSON.stringify(ListAlertsResponseBody$outboundSchema.parse(listAlertsResponseBody));
70
+ }
71
+ export function listAlertsResponseBodyFromJSON(jsonString) {
72
+ return safeParse(jsonString, (x) => ListAlertsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAlertsResponseBody' from JSON`);
73
+ }
74
+ /** @internal */
75
+ export const ListAlertsResponse$inboundSchema = z.object({
76
+ Result: z.lazy(() => ListAlertsResponseBody$inboundSchema),
77
+ }).transform((v) => {
78
+ return remap$(v, {
79
+ "Result": "result",
80
+ });
81
+ });
82
+ /** @internal */
83
+ export const ListAlertsResponse$outboundSchema = z.object({
84
+ result: z.lazy(() => ListAlertsResponseBody$outboundSchema),
85
+ }).transform((v) => {
86
+ return remap$(v, {
87
+ result: "Result",
88
+ });
89
+ });
90
+ /**
91
+ * @internal
92
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
+ */
94
+ export var ListAlertsResponse$;
95
+ (function (ListAlertsResponse$) {
96
+ /** @deprecated use `ListAlertsResponse$inboundSchema` instead. */
97
+ ListAlertsResponse$.inboundSchema = ListAlertsResponse$inboundSchema;
98
+ /** @deprecated use `ListAlertsResponse$outboundSchema` instead. */
99
+ ListAlertsResponse$.outboundSchema = ListAlertsResponse$outboundSchema;
100
+ })(ListAlertsResponse$ || (ListAlertsResponse$ = {}));
101
+ export function listAlertsResponseToJSON(listAlertsResponse) {
102
+ return JSON.stringify(ListAlertsResponse$outboundSchema.parse(listAlertsResponse));
103
+ }
104
+ export function listAlertsResponseFromJSON(jsonString) {
105
+ return safeParse(jsonString, (x) => ListAlertsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAlertsResponse' from JSON`);
106
+ }
107
+ //# sourceMappingURL=listalerts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listalerts.js","sourceRoot":"","sources":["../../../../src/models/operations/listalerts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAqCrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,IAAI,EAAE,UAAU,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC9C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,CAAC,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CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;CAC5D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,gCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,iCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,KAAnB,mBAAmB,QAOnC;AAED,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,57 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type UpdateUserAlertsRequestBody = {
5
+ alertIds?: Array<number> | undefined;
6
+ };
7
+ /**
8
+ * The request was successful, and the server has returned the requested resource in the response body.
9
+ */
10
+ export type UpdateUserAlertsResponseBody = {
11
+ success?: boolean | undefined;
12
+ };
13
+ /** @internal */
14
+ export declare const UpdateUserAlertsRequestBody$inboundSchema: z.ZodType<UpdateUserAlertsRequestBody, z.ZodTypeDef, unknown>;
15
+ /** @internal */
16
+ export type UpdateUserAlertsRequestBody$Outbound = {
17
+ alert_ids?: Array<number> | undefined;
18
+ };
19
+ /** @internal */
20
+ export declare const UpdateUserAlertsRequestBody$outboundSchema: z.ZodType<UpdateUserAlertsRequestBody$Outbound, z.ZodTypeDef, UpdateUserAlertsRequestBody>;
21
+ /**
22
+ * @internal
23
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
24
+ */
25
+ export declare namespace UpdateUserAlertsRequestBody$ {
26
+ /** @deprecated use `UpdateUserAlertsRequestBody$inboundSchema` instead. */
27
+ const inboundSchema: z.ZodType<UpdateUserAlertsRequestBody, z.ZodTypeDef, unknown>;
28
+ /** @deprecated use `UpdateUserAlertsRequestBody$outboundSchema` instead. */
29
+ const outboundSchema: z.ZodType<UpdateUserAlertsRequestBody$Outbound, z.ZodTypeDef, UpdateUserAlertsRequestBody>;
30
+ /** @deprecated use `UpdateUserAlertsRequestBody$Outbound` instead. */
31
+ type Outbound = UpdateUserAlertsRequestBody$Outbound;
32
+ }
33
+ export declare function updateUserAlertsRequestBodyToJSON(updateUserAlertsRequestBody: UpdateUserAlertsRequestBody): string;
34
+ export declare function updateUserAlertsRequestBodyFromJSON(jsonString: string): SafeParseResult<UpdateUserAlertsRequestBody, SDKValidationError>;
35
+ /** @internal */
36
+ export declare const UpdateUserAlertsResponseBody$inboundSchema: z.ZodType<UpdateUserAlertsResponseBody, z.ZodTypeDef, unknown>;
37
+ /** @internal */
38
+ export type UpdateUserAlertsResponseBody$Outbound = {
39
+ success?: boolean | undefined;
40
+ };
41
+ /** @internal */
42
+ export declare const UpdateUserAlertsResponseBody$outboundSchema: z.ZodType<UpdateUserAlertsResponseBody$Outbound, z.ZodTypeDef, UpdateUserAlertsResponseBody>;
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export declare namespace UpdateUserAlertsResponseBody$ {
48
+ /** @deprecated use `UpdateUserAlertsResponseBody$inboundSchema` instead. */
49
+ const inboundSchema: z.ZodType<UpdateUserAlertsResponseBody, z.ZodTypeDef, unknown>;
50
+ /** @deprecated use `UpdateUserAlertsResponseBody$outboundSchema` instead. */
51
+ const outboundSchema: z.ZodType<UpdateUserAlertsResponseBody$Outbound, z.ZodTypeDef, UpdateUserAlertsResponseBody>;
52
+ /** @deprecated use `UpdateUserAlertsResponseBody$Outbound` instead. */
53
+ type Outbound = UpdateUserAlertsResponseBody$Outbound;
54
+ }
55
+ export declare function updateUserAlertsResponseBodyToJSON(updateUserAlertsResponseBody: UpdateUserAlertsResponseBody): string;
56
+ export declare function updateUserAlertsResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdateUserAlertsResponseBody, SDKValidationError>;
57
+ //# sourceMappingURL=updateuseralerts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateuseralerts.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updateuseralerts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/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AAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ /** @internal */
8
+ export const UpdateUserAlertsRequestBody$inboundSchema = z.object({
9
+ alert_ids: z.array(z.number().int()).optional(),
10
+ }).transform((v) => {
11
+ return remap$(v, {
12
+ "alert_ids": "alertIds",
13
+ });
14
+ });
15
+ /** @internal */
16
+ export const UpdateUserAlertsRequestBody$outboundSchema = z.object({
17
+ alertIds: z.array(z.number().int()).optional(),
18
+ }).transform((v) => {
19
+ return remap$(v, {
20
+ alertIds: "alert_ids",
21
+ });
22
+ });
23
+ /**
24
+ * @internal
25
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
26
+ */
27
+ export var UpdateUserAlertsRequestBody$;
28
+ (function (UpdateUserAlertsRequestBody$) {
29
+ /** @deprecated use `UpdateUserAlertsRequestBody$inboundSchema` instead. */
30
+ UpdateUserAlertsRequestBody$.inboundSchema = UpdateUserAlertsRequestBody$inboundSchema;
31
+ /** @deprecated use `UpdateUserAlertsRequestBody$outboundSchema` instead. */
32
+ UpdateUserAlertsRequestBody$.outboundSchema = UpdateUserAlertsRequestBody$outboundSchema;
33
+ })(UpdateUserAlertsRequestBody$ || (UpdateUserAlertsRequestBody$ = {}));
34
+ export function updateUserAlertsRequestBodyToJSON(updateUserAlertsRequestBody) {
35
+ return JSON.stringify(UpdateUserAlertsRequestBody$outboundSchema.parse(updateUserAlertsRequestBody));
36
+ }
37
+ export function updateUserAlertsRequestBodyFromJSON(jsonString) {
38
+ return safeParse(jsonString, (x) => UpdateUserAlertsRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUserAlertsRequestBody' from JSON`);
39
+ }
40
+ /** @internal */
41
+ export const UpdateUserAlertsResponseBody$inboundSchema = z.object({
42
+ success: z.boolean().optional(),
43
+ });
44
+ /** @internal */
45
+ export const UpdateUserAlertsResponseBody$outboundSchema = z.object({
46
+ success: z.boolean().optional(),
47
+ });
48
+ /**
49
+ * @internal
50
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
+ */
52
+ export var UpdateUserAlertsResponseBody$;
53
+ (function (UpdateUserAlertsResponseBody$) {
54
+ /** @deprecated use `UpdateUserAlertsResponseBody$inboundSchema` instead. */
55
+ UpdateUserAlertsResponseBody$.inboundSchema = UpdateUserAlertsResponseBody$inboundSchema;
56
+ /** @deprecated use `UpdateUserAlertsResponseBody$outboundSchema` instead. */
57
+ UpdateUserAlertsResponseBody$.outboundSchema = UpdateUserAlertsResponseBody$outboundSchema;
58
+ })(UpdateUserAlertsResponseBody$ || (UpdateUserAlertsResponseBody$ = {}));
59
+ export function updateUserAlertsResponseBodyToJSON(updateUserAlertsResponseBody) {
60
+ return JSON.stringify(UpdateUserAlertsResponseBody$outboundSchema.parse(updateUserAlertsResponseBody));
61
+ }
62
+ export function updateUserAlertsResponseBodyFromJSON(jsonString) {
63
+ return safeParse(jsonString, (x) => UpdateUserAlertsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUserAlertsResponseBody' from JSON`);
64
+ }
65
+ //# sourceMappingURL=updateuseralerts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateuseralerts.js","sourceRoot":"","sources":["../../../../src/models/operations/updateuseralerts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO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,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,0CAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,2CAA2C,CAAC;AAG5E,CAAC,EAPgB,6BAA6B,KAA7B,6BAA6B,QAO7C;AAED,MAAM,UAAU,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,2CAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oCAAoC,CAClD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { InfiniteData, InvalidateQueryFilters, QueryClient, QueryFunctionContext, QueryKey, UseInfiniteQueryResult, UseQueryResult, UseSuspenseInfiniteQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
2
+ import { GreenSecurityCore } from "../core.js";
3
+ import { RequestOptions } from "../lib/sdks.js";
4
+ import * as components from "../models/components/index.js";
5
+ import * as operations from "../models/operations/index.js";
6
+ import { PageIterator } from "../types/operations.js";
7
+ import { InfiniteQueryHookOptions, QueryHookOptions, SuspenseInfiniteQueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
8
+ export type AlertsListAlertsQueryData = operations.ListAlertsResponse;
9
+ export type AlertsListAlertsInfiniteQueryData = PageIterator<operations.ListAlertsResponse, {
10
+ page: number;
11
+ }>;
12
+ export type AlertsListAlertsPageParams = PageIterator<operations.ListAlertsResponse, {
13
+ page: number;
14
+ }>["~next"];
15
+ /**
16
+ * List alerts
17
+ *
18
+ * @remarks
19
+ * List alerts for user.
20
+ */
21
+ export declare function useAlertsListAlerts(request: operations.ListAlertsRequest, options?: QueryHookOptions<AlertsListAlertsQueryData>): UseQueryResult<AlertsListAlertsQueryData, Error>;
22
+ /**
23
+ * List alerts
24
+ *
25
+ * @remarks
26
+ * List alerts for user.
27
+ */
28
+ export declare function useAlertsListAlertsSuspense(request: operations.ListAlertsRequest, options?: SuspenseQueryHookOptions<AlertsListAlertsQueryData>): UseSuspenseQueryResult<AlertsListAlertsQueryData, Error>;
29
+ /**
30
+ * List alerts
31
+ *
32
+ * @remarks
33
+ * List alerts for user.
34
+ */
35
+ export declare function useAlertsListAlertsInfinite(request: operations.ListAlertsRequest, options?: InfiniteQueryHookOptions<AlertsListAlertsInfiniteQueryData>): UseInfiniteQueryResult<InfiniteData<AlertsListAlertsInfiniteQueryData, AlertsListAlertsPageParams>, Error>;
36
+ /**
37
+ * List alerts
38
+ *
39
+ * @remarks
40
+ * List alerts for user.
41
+ */
42
+ export declare function useAlertsListAlertsInfiniteSuspense(request: operations.ListAlertsRequest, options?: SuspenseInfiniteQueryHookOptions<AlertsListAlertsInfiniteQueryData>): UseSuspenseInfiniteQueryResult<InfiniteData<AlertsListAlertsInfiniteQueryData, AlertsListAlertsPageParams>, Error>;
43
+ export declare function prefetchAlertsListAlerts(queryClient: QueryClient, client$: GreenSecurityCore, request: operations.ListAlertsRequest): Promise<void>;
44
+ export declare function setAlertsListAlertsData(client: QueryClient, queryKeyBase: [
45
+ parameters: {
46
+ sort?: string | null | undefined;
47
+ desc?: components.Desc | undefined;
48
+ page?: number | undefined;
49
+ itemsPerPage?: number | undefined;
50
+ }
51
+ ], data: AlertsListAlertsQueryData): AlertsListAlertsQueryData | undefined;
52
+ export declare function invalidateAlertsListAlerts(client: QueryClient, queryKeyBase: TupleToPrefixes<[
53
+ parameters: {
54
+ sort?: string | null | undefined;
55
+ desc?: components.Desc | undefined;
56
+ page?: number | undefined;
57
+ itemsPerPage?: number | undefined;
58
+ }
59
+ ]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
60
+ export declare function invalidateAllAlertsListAlerts(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
61
+ export declare function buildAlertsListAlertsQuery(client$: GreenSecurityCore, request: operations.ListAlertsRequest, options?: RequestOptions): {
62
+ queryKey: QueryKey;
63
+ queryFn: (context: QueryFunctionContext) => Promise<AlertsListAlertsQueryData>;
64
+ };
65
+ export declare function buildAlertsListAlertsInfiniteQuery(client$: GreenSecurityCore, request: operations.ListAlertsRequest, options?: RequestOptions): {
66
+ queryKey: QueryKey;
67
+ queryFn: (context: QueryFunctionContext<QueryKey, AlertsListAlertsPageParams>) => Promise<AlertsListAlertsInfiniteQueryData>;
68
+ };
69
+ export declare function queryKeyAlertsListAlerts(parameters: {
70
+ sort?: string | null | undefined;
71
+ desc?: components.Desc | undefined;
72
+ page?: number | undefined;
73
+ itemsPerPage?: number | undefined;
74
+ }): QueryKey;
75
+ //# sourceMappingURL=alertsListAlerts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertsListAlerts.d.ts","sourceRoot":"","sources":["../../../src/react-query/alertsListAlerts.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACX,oBAAoB,EACpB,QAAQ,EAER,sBAAsB,EAEtB,cAAc,EAEd,8BAA8B,E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AI,CAAC,CAUf;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,CACP,OAAO,EAAE,oBAAoB,KAC1B,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACzC,CAwBA;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,CACP,OAAO,EAAE,oBAAoB,CAAC,QAAQ,EAAE,0BAA0B,CAAC,KAChE,OAAO,CAAC,iCAAiC,CAAC,CAAC;CACjD,CAmCA;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE;IACV,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,GACA,QAAQ,CAEV"}
@@ -0,0 +1,137 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { useInfiniteQuery, useQuery, useSuspenseInfiniteQuery, useSuspenseQuery, } from "@tanstack/react-query";
5
+ import { alertsListAlerts } from "../funcs/alertsListAlerts.js";
6
+ import { combineSignals } from "../lib/primitives.js";
7
+ import { unwrapAsync } from "../types/fp.js";
8
+ import { unwrapResultIterator } from "../types/operations.js";
9
+ import { useGreenSecurityContext } from "./_context.js";
10
+ /**
11
+ * List alerts
12
+ *
13
+ * @remarks
14
+ * List alerts for user.
15
+ */
16
+ export function useAlertsListAlerts(request, options) {
17
+ const client = useGreenSecurityContext();
18
+ return useQuery({
19
+ ...buildAlertsListAlertsQuery(client, request, options),
20
+ ...options,
21
+ });
22
+ }
23
+ /**
24
+ * List alerts
25
+ *
26
+ * @remarks
27
+ * List alerts for user.
28
+ */
29
+ export function useAlertsListAlertsSuspense(request, options) {
30
+ const client = useGreenSecurityContext();
31
+ return useSuspenseQuery({
32
+ ...buildAlertsListAlertsQuery(client, request, options),
33
+ ...options,
34
+ });
35
+ }
36
+ /**
37
+ * List alerts
38
+ *
39
+ * @remarks
40
+ * List alerts for user.
41
+ */
42
+ export function useAlertsListAlertsInfinite(request, options) {
43
+ const client = useGreenSecurityContext();
44
+ return useInfiniteQuery({
45
+ ...buildAlertsListAlertsInfiniteQuery(client, request, options),
46
+ initialPageParam: options?.initialPageParam,
47
+ getNextPageParam: (previousPage) => previousPage["~next"],
48
+ ...options,
49
+ });
50
+ }
51
+ /**
52
+ * List alerts
53
+ *
54
+ * @remarks
55
+ * List alerts for user.
56
+ */
57
+ export function useAlertsListAlertsInfiniteSuspense(request, options) {
58
+ const client = useGreenSecurityContext();
59
+ return useSuspenseInfiniteQuery({
60
+ ...buildAlertsListAlertsInfiniteQuery(client, request, options),
61
+ initialPageParam: options?.initialPageParam,
62
+ getNextPageParam: (previousPage) => previousPage["~next"],
63
+ ...options,
64
+ });
65
+ }
66
+ export function prefetchAlertsListAlerts(queryClient, client$, request) {
67
+ return queryClient.prefetchQuery({
68
+ ...buildAlertsListAlertsQuery(client$, request),
69
+ });
70
+ }
71
+ export function setAlertsListAlertsData(client, queryKeyBase, data) {
72
+ const key = queryKeyAlertsListAlerts(...queryKeyBase);
73
+ return client.setQueryData(key, data);
74
+ }
75
+ export function invalidateAlertsListAlerts(client, queryKeyBase, filters) {
76
+ return client.invalidateQueries({
77
+ ...filters,
78
+ queryKey: [
79
+ "@greensecurity/javascript-sdk",
80
+ "alerts",
81
+ "listAlerts",
82
+ ...queryKeyBase,
83
+ ],
84
+ });
85
+ }
86
+ export function invalidateAllAlertsListAlerts(client, filters) {
87
+ return client.invalidateQueries({
88
+ ...filters,
89
+ queryKey: ["@greensecurity/javascript-sdk", "alerts", "listAlerts"],
90
+ });
91
+ }
92
+ export function buildAlertsListAlertsQuery(client$, request, options) {
93
+ return {
94
+ queryKey: queryKeyAlertsListAlerts({
95
+ sort: request.sort,
96
+ desc: request.desc,
97
+ page: request.page,
98
+ itemsPerPage: request.itemsPerPage,
99
+ }),
100
+ queryFn: async function alertsListAlertsQueryFn(ctx) {
101
+ const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
102
+ const mergedOptions = {
103
+ ...options,
104
+ fetchOptions: { ...options?.fetchOptions, signal: sig },
105
+ };
106
+ return unwrapAsync(alertsListAlerts(client$, request, mergedOptions));
107
+ },
108
+ };
109
+ }
110
+ export function buildAlertsListAlertsInfiniteQuery(client$, request, options) {
111
+ return {
112
+ queryKey: queryKeyAlertsListAlerts({
113
+ sort: request.sort,
114
+ desc: request.desc,
115
+ page: request.page,
116
+ itemsPerPage: request.itemsPerPage,
117
+ }),
118
+ queryFn: async function alertsListAlertsQuery(ctx) {
119
+ const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
120
+ const mergedOptions = {
121
+ ...options,
122
+ fetchOptions: { ...options?.fetchOptions, signal: sig },
123
+ };
124
+ if (!ctx.pageParam) {
125
+ return unwrapResultIterator(alertsListAlerts(client$, request, mergedOptions));
126
+ }
127
+ return unwrapResultIterator(alertsListAlerts(client$, {
128
+ ...request,
129
+ page: ctx.pageParam.page,
130
+ }, mergedOptions));
131
+ },
132
+ };
133
+ }
134
+ export function queryKeyAlertsListAlerts(parameters) {
135
+ return ["@greensecurity/javascript-sdk", "alerts", "listAlerts", parameters];
136
+ }
137
+ //# sourceMappingURL=alertsListAlerts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertsListAlerts.js","sourceRoot":"","sources":["../../../src/react-query/alertsListAlerts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAML,gBAAgB,EAEhB,QAAQ,EAER,wBAAwB,EAExB,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAItD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAqBxD;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,OAAqC,EACrC,OAAqD;IAErD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,QAAQ,CAAC;QACd,GAAG,0BAA0B,CAC3B,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CACzC,OAAqC,EACrC,OAA6D;IAE7D,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,gBAAgB,CAAC;QACtB,GAAG,0BAA0B,CAC3B,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CACzC,OAAqC,EACrC,OAAqE;IAKrE,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,gBAAgB,CAMrB;QACA,GAAG,kCAAkC,CACnC,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,gBAAgB,EAAE,OA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AAY,EAAE,EAAE,GAAG,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE;aACxD,CAAC;YAEF,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;gBACnB,OAAO,oBAAoB,CAAC,gBAAgB,CAC1C,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;YACL,CAAC;YAED,OAAO,oBAAoB,CAAC,gBAAgB,CAC1C,OAAO,EACP;gBACE,GAAG,OAAO;gBACV,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,IAAI;aACzB,EACD,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,UAKC;IAED,OAAO,CAAC,+BAA+B,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AAC/E,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { MutationKey, UseMutationResult } from "@tanstack/react-query";
2
+ import { GreenSecurityCore } from "../core.js";
3
+ import { RequestOptions } from "../lib/sdks.js";
4
+ import * as operations from "../models/operations/index.js";
5
+ import { MutationHookOptions } from "./_types.js";
6
+ export type AlertsUpdateUserAlertsMutationVariables = {
7
+ request: operations.UpdateUserAlertsRequestBody;
8
+ options?: RequestOptions;
9
+ };
10
+ export type AlertsUpdateUserAlertsMutationData = operations.UpdateUserAlertsResponseBody;
11
+ /**
12
+ * Update user alerts
13
+ *
14
+ * @remarks
15
+ * Update user alerts
16
+ */
17
+ export declare function useAlertsUpdateUserAlertsMutation(options?: MutationHookOptions<AlertsUpdateUserAlertsMutationData, Error, AlertsUpdateUserAlertsMutationVariables>): UseMutationResult<AlertsUpdateUserAlertsMutationData, Error, AlertsUpdateUserAlertsMutationVariables>;
18
+ export declare function mutationKeyAlertsUpdateUserAlerts(): MutationKey;
19
+ export declare function buildAlertsUpdateUserAlertsMutation(client$: GreenSecurityCore, hookOptions?: RequestOptions): {
20
+ mutationKey: MutationKey;
21
+ mutationFn: (variables: AlertsUpdateUserAlertsMutationVariables) => Promise<AlertsUpdateUserAlertsMutationData>;
22
+ };
23
+ //# sourceMappingURL=alertsUpdateUserAlerts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertsUpdateUserAlerts.d.ts","sourceRoot":"","sources":["../../../src/react-query/alertsUpdateUserAlerts.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,uCAAuC,GAAG;IACpD,OAAO,EAAE,UAAU,CAAC,2BAA2B,CAAC;IAChD,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAC5C,UAAU,CAAC,4BAA4B,CAAC;AAE1C;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,CAAC,EAAE,mBAAmB,CAC3B,kCAAkC,EAClC,KAAK,EACL,uCAAuC,CACxC,GACA,iBAAiB,CAClB,kCAAkC,EAClC,KAAK,EACL,uCAAuC,CACxC,CAMA;AAED,wBAAgB,iCAAiC,IAAI,WAAW,CAE/D;AAED,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,iBAAiB,EAC1B,WAAW,CAAC,EAAE,cAAc,GAC3B;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,CACV,SAAS,EAAE,uCAAuC,KAC/C,OAAO,CAAC,kCAAkC,CAAC,CAAC;CAClD,CA0BA"}