magicbell-js 0.2.0 → 0.3.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.
Files changed (181) hide show
  1. package/README.md +4 -19
  2. package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts +26 -26
  3. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts +16 -16
  4. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js +3 -3
  5. package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js.map +1 -1
  6. package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts +1 -105
  7. package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts.map +1 -1
  8. package/dist/commonjs/project-client/services/integrations/integrations-service.js +0 -419
  9. package/dist/commonjs/project-client/services/integrations/integrations-service.js.map +1 -1
  10. package/dist/commonjs/project-client/services/integrations/models/index.d.ts +0 -14
  11. package/dist/commonjs/project-client/services/integrations/models/index.d.ts.map +1 -1
  12. package/dist/commonjs/project-client/services/integrations/models/index.js.map +1 -1
  13. package/dist/commonjs/project-client/services/integrations/request-params.d.ts +0 -15
  14. package/dist/commonjs/project-client/services/integrations/request-params.d.ts.map +1 -1
  15. package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts +0 -7
  16. package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts.map +1 -1
  17. package/dist/commonjs/user-client/services/integrations/integrations-service.js +0 -28
  18. package/dist/commonjs/user-client/services/integrations/integrations-service.js.map +1 -1
  19. package/dist/commonjs/user-client/services/integrations/models/index.d.ts +0 -1
  20. package/dist/commonjs/user-client/services/integrations/models/index.d.ts.map +1 -1
  21. package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts +26 -26
  22. package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts +16 -16
  23. package/dist/esm/project-client/services/broadcasts/models/broadcast.js +3 -3
  24. package/dist/esm/project-client/services/broadcasts/models/broadcast.js.map +1 -1
  25. package/dist/esm/project-client/services/integrations/integrations-service.d.ts +1 -105
  26. package/dist/esm/project-client/services/integrations/integrations-service.d.ts.map +1 -1
  27. package/dist/esm/project-client/services/integrations/integrations-service.js +0 -419
  28. package/dist/esm/project-client/services/integrations/integrations-service.js.map +1 -1
  29. package/dist/esm/project-client/services/integrations/models/index.d.ts +0 -14
  30. package/dist/esm/project-client/services/integrations/models/index.d.ts.map +1 -1
  31. package/dist/esm/project-client/services/integrations/models/index.js.map +1 -1
  32. package/dist/esm/project-client/services/integrations/request-params.d.ts +0 -15
  33. package/dist/esm/project-client/services/integrations/request-params.d.ts.map +1 -1
  34. package/dist/esm/user-client/services/integrations/integrations-service.d.ts +0 -7
  35. package/dist/esm/user-client/services/integrations/integrations-service.d.ts.map +1 -1
  36. package/dist/esm/user-client/services/integrations/integrations-service.js +0 -28
  37. package/dist/esm/user-client/services/integrations/integrations-service.js.map +1 -1
  38. package/dist/esm/user-client/services/integrations/models/index.d.ts +0 -1
  39. package/dist/esm/user-client/services/integrations/models/index.d.ts.map +1 -1
  40. package/package.json +1 -1
  41. package/src/project-client/services/broadcasts/models/broadcast.ts +3 -3
  42. package/src/project-client/services/integrations/integrations-service.ts +0 -485
  43. package/src/project-client/services/integrations/models/index.ts +0 -14
  44. package/src/project-client/services/integrations/request-params.ts +0 -20
  45. package/src/user-client/services/integrations/integrations-service.ts +0 -36
  46. package/src/user-client/services/integrations/models/index.ts +0 -1
  47. package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.d.ts +0 -312
  48. package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.d.ts.map +0 -1
  49. package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.js +0 -46
  50. package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.js.map +0 -1
  51. package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.d.ts +0 -48
  52. package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.d.ts.map +0 -1
  53. package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.js +0 -39
  54. package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.js.map +0 -1
  55. package/dist/commonjs/project-client/services/integrations/models/awssns-config.d.ts +0 -122
  56. package/dist/commonjs/project-client/services/integrations/models/awssns-config.d.ts.map +0 -1
  57. package/dist/commonjs/project-client/services/integrations/models/awssns-config.js +0 -50
  58. package/dist/commonjs/project-client/services/integrations/models/awssns-config.js.map +0 -1
  59. package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts +0 -312
  60. package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts.map +0 -1
  61. package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js +0 -46
  62. package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js.map +0 -1
  63. package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts +0 -48
  64. package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts.map +0 -1
  65. package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js +0 -39
  66. package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js.map +0 -1
  67. package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts +0 -122
  68. package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts.map +0 -1
  69. package/dist/commonjs/project-client/services/integrations/models/event-source-config.js +0 -50
  70. package/dist/commonjs/project-client/services/integrations/models/event-source-config.js.map +0 -1
  71. package/dist/commonjs/project-client/services/integrations/models/github-config-collection.d.ts +0 -312
  72. package/dist/commonjs/project-client/services/integrations/models/github-config-collection.d.ts.map +0 -1
  73. package/dist/commonjs/project-client/services/integrations/models/github-config-collection.js +0 -46
  74. package/dist/commonjs/project-client/services/integrations/models/github-config-collection.js.map +0 -1
  75. package/dist/commonjs/project-client/services/integrations/models/github-config-payload.d.ts +0 -48
  76. package/dist/commonjs/project-client/services/integrations/models/github-config-payload.d.ts.map +0 -1
  77. package/dist/commonjs/project-client/services/integrations/models/github-config-payload.js +0 -39
  78. package/dist/commonjs/project-client/services/integrations/models/github-config-payload.js.map +0 -1
  79. package/dist/commonjs/project-client/services/integrations/models/github-config.d.ts +0 -122
  80. package/dist/commonjs/project-client/services/integrations/models/github-config.d.ts.map +0 -1
  81. package/dist/commonjs/project-client/services/integrations/models/github-config.js +0 -50
  82. package/dist/commonjs/project-client/services/integrations/models/github-config.js.map +0 -1
  83. package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts +0 -312
  84. package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts.map +0 -1
  85. package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.js +0 -46
  86. package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.js.map +0 -1
  87. package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts +0 -48
  88. package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts.map +0 -1
  89. package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js +0 -39
  90. package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js.map +0 -1
  91. package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts +0 -122
  92. package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts.map +0 -1
  93. package/dist/commonjs/project-client/services/integrations/models/stripe-config.js +0 -50
  94. package/dist/commonjs/project-client/services/integrations/models/stripe-config.js.map +0 -1
  95. package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.d.ts +0 -246
  96. package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.d.ts.map +0 -1
  97. package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.js +0 -46
  98. package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.js.map +0 -1
  99. package/dist/commonjs/project-client/services/integrations/models/templates-config.d.ts +0 -76
  100. package/dist/commonjs/project-client/services/integrations/models/templates-config.d.ts.map +0 -1
  101. package/dist/commonjs/project-client/services/integrations/models/templates-config.js +0 -49
  102. package/dist/commonjs/project-client/services/integrations/models/templates-config.js.map +0 -1
  103. package/dist/commonjs/user-client/services/integrations/models/templates-installation.d.ts +0 -76
  104. package/dist/commonjs/user-client/services/integrations/models/templates-installation.d.ts.map +0 -1
  105. package/dist/commonjs/user-client/services/integrations/models/templates-installation.js +0 -49
  106. package/dist/commonjs/user-client/services/integrations/models/templates-installation.js.map +0 -1
  107. package/dist/esm/project-client/services/integrations/models/awssns-config-collection.d.ts +0 -312
  108. package/dist/esm/project-client/services/integrations/models/awssns-config-collection.d.ts.map +0 -1
  109. package/dist/esm/project-client/services/integrations/models/awssns-config-collection.js +0 -43
  110. package/dist/esm/project-client/services/integrations/models/awssns-config-collection.js.map +0 -1
  111. package/dist/esm/project-client/services/integrations/models/awssns-config-payload.d.ts +0 -48
  112. package/dist/esm/project-client/services/integrations/models/awssns-config-payload.d.ts.map +0 -1
  113. package/dist/esm/project-client/services/integrations/models/awssns-config-payload.js +0 -36
  114. package/dist/esm/project-client/services/integrations/models/awssns-config-payload.js.map +0 -1
  115. package/dist/esm/project-client/services/integrations/models/awssns-config.d.ts +0 -122
  116. package/dist/esm/project-client/services/integrations/models/awssns-config.d.ts.map +0 -1
  117. package/dist/esm/project-client/services/integrations/models/awssns-config.js +0 -47
  118. package/dist/esm/project-client/services/integrations/models/awssns-config.js.map +0 -1
  119. package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts +0 -312
  120. package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts.map +0 -1
  121. package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js +0 -43
  122. package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js.map +0 -1
  123. package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts +0 -48
  124. package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts.map +0 -1
  125. package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js +0 -36
  126. package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js.map +0 -1
  127. package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts +0 -122
  128. package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts.map +0 -1
  129. package/dist/esm/project-client/services/integrations/models/event-source-config.js +0 -47
  130. package/dist/esm/project-client/services/integrations/models/event-source-config.js.map +0 -1
  131. package/dist/esm/project-client/services/integrations/models/github-config-collection.d.ts +0 -312
  132. package/dist/esm/project-client/services/integrations/models/github-config-collection.d.ts.map +0 -1
  133. package/dist/esm/project-client/services/integrations/models/github-config-collection.js +0 -43
  134. package/dist/esm/project-client/services/integrations/models/github-config-collection.js.map +0 -1
  135. package/dist/esm/project-client/services/integrations/models/github-config-payload.d.ts +0 -48
  136. package/dist/esm/project-client/services/integrations/models/github-config-payload.d.ts.map +0 -1
  137. package/dist/esm/project-client/services/integrations/models/github-config-payload.js +0 -36
  138. package/dist/esm/project-client/services/integrations/models/github-config-payload.js.map +0 -1
  139. package/dist/esm/project-client/services/integrations/models/github-config.d.ts +0 -122
  140. package/dist/esm/project-client/services/integrations/models/github-config.d.ts.map +0 -1
  141. package/dist/esm/project-client/services/integrations/models/github-config.js +0 -47
  142. package/dist/esm/project-client/services/integrations/models/github-config.js.map +0 -1
  143. package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts +0 -312
  144. package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts.map +0 -1
  145. package/dist/esm/project-client/services/integrations/models/stripe-config-collection.js +0 -43
  146. package/dist/esm/project-client/services/integrations/models/stripe-config-collection.js.map +0 -1
  147. package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts +0 -48
  148. package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts.map +0 -1
  149. package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js +0 -36
  150. package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js.map +0 -1
  151. package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts +0 -122
  152. package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts.map +0 -1
  153. package/dist/esm/project-client/services/integrations/models/stripe-config.js +0 -47
  154. package/dist/esm/project-client/services/integrations/models/stripe-config.js.map +0 -1
  155. package/dist/esm/project-client/services/integrations/models/templates-config-collection.d.ts +0 -246
  156. package/dist/esm/project-client/services/integrations/models/templates-config-collection.d.ts.map +0 -1
  157. package/dist/esm/project-client/services/integrations/models/templates-config-collection.js +0 -43
  158. package/dist/esm/project-client/services/integrations/models/templates-config-collection.js.map +0 -1
  159. package/dist/esm/project-client/services/integrations/models/templates-config.d.ts +0 -76
  160. package/dist/esm/project-client/services/integrations/models/templates-config.d.ts.map +0 -1
  161. package/dist/esm/project-client/services/integrations/models/templates-config.js +0 -46
  162. package/dist/esm/project-client/services/integrations/models/templates-config.js.map +0 -1
  163. package/dist/esm/user-client/services/integrations/models/templates-installation.d.ts +0 -76
  164. package/dist/esm/user-client/services/integrations/models/templates-installation.d.ts.map +0 -1
  165. package/dist/esm/user-client/services/integrations/models/templates-installation.js +0 -46
  166. package/dist/esm/user-client/services/integrations/models/templates-installation.js.map +0 -1
  167. package/src/project-client/services/integrations/models/awssns-config-collection.ts +0 -54
  168. package/src/project-client/services/integrations/models/awssns-config-payload.ts +0 -45
  169. package/src/project-client/services/integrations/models/awssns-config.ts +0 -64
  170. package/src/project-client/services/integrations/models/event-source-config-collection.ts +0 -59
  171. package/src/project-client/services/integrations/models/event-source-config-payload.ts +0 -45
  172. package/src/project-client/services/integrations/models/event-source-config.ts +0 -64
  173. package/src/project-client/services/integrations/models/github-config-collection.ts +0 -54
  174. package/src/project-client/services/integrations/models/github-config-payload.ts +0 -45
  175. package/src/project-client/services/integrations/models/github-config.ts +0 -64
  176. package/src/project-client/services/integrations/models/stripe-config-collection.ts +0 -54
  177. package/src/project-client/services/integrations/models/stripe-config-payload.ts +0 -45
  178. package/src/project-client/services/integrations/models/stripe-config.ts +0 -64
  179. package/src/project-client/services/integrations/models/templates-config-collection.ts +0 -59
  180. package/src/project-client/services/integrations/models/templates-config.ts +0 -57
  181. package/src/user-client/services/integrations/models/templates-installation.ts +0 -57
@@ -1,64 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import {
4
- AwssnsConfigPayload,
5
- awssnsConfigPayload,
6
- awssnsConfigPayloadRequest,
7
- awssnsConfigPayloadResponse,
8
- } from './awssns-config-payload.js';
9
-
10
- /**
11
- * The shape of the model inside the application code - what the users use
12
- */
13
- export const awssnsConfig = z.lazy(() => {
14
- return z.object({
15
- config: awssnsConfigPayload,
16
- id: z.string(),
17
- name: z.string(),
18
- });
19
- });
20
-
21
- /**
22
- *
23
- * @typedef {AwssnsConfig} awssnsConfig
24
- * @property {AwssnsConfigPayload}
25
- * @property {string}
26
- * @property {string}
27
- */
28
- export type AwssnsConfig = z.infer<typeof awssnsConfig>;
29
-
30
- /**
31
- * The shape of the model mapping from the api schema into the application shape.
32
- * Is equal to application shape if all property names match the api schema
33
- */
34
- export const awssnsConfigResponse = z.lazy(() => {
35
- return z
36
- .object({
37
- config: awssnsConfigPayloadResponse,
38
- id: z.string(),
39
- name: z.string(),
40
- })
41
- .transform((data) => ({
42
- config: data['config'],
43
- id: data['id'],
44
- name: data['name'],
45
- }));
46
- });
47
-
48
- /**
49
- * The shape of the model mapping from the application shape into the api schema.
50
- * Is equal to application shape if all property names match the api schema
51
- */
52
- export const awssnsConfigRequest = z.lazy(() => {
53
- return z
54
- .object({
55
- config: awssnsConfigPayloadRequest,
56
- id: z.string(),
57
- name: z.string(),
58
- })
59
- .transform((data) => ({
60
- config: data['config'],
61
- id: data['id'],
62
- name: data['name'],
63
- }));
64
- });
@@ -1,59 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import { Links, links, linksRequest, linksResponse } from '../../common/links.js';
4
- import {
5
- EventSourceConfig,
6
- eventSourceConfig,
7
- eventSourceConfigRequest,
8
- eventSourceConfigResponse,
9
- } from './event-source-config.js';
10
-
11
- /**
12
- * The shape of the model inside the application code - what the users use
13
- */
14
- export const eventSourceConfigCollection = z.lazy(() => {
15
- return z.object({
16
- data: z.array(eventSourceConfig).optional(),
17
- links: links.optional(),
18
- });
19
- });
20
-
21
- /**
22
- *
23
- * @typedef {EventSourceConfigCollection} eventSourceConfigCollection
24
- * @property {EventSourceConfig[]}
25
- * @property {Links}
26
- */
27
- export type EventSourceConfigCollection = z.infer<typeof eventSourceConfigCollection>;
28
-
29
- /**
30
- * The shape of the model mapping from the api schema into the application shape.
31
- * Is equal to application shape if all property names match the api schema
32
- */
33
- export const eventSourceConfigCollectionResponse = z.lazy(() => {
34
- return z
35
- .object({
36
- data: z.array(eventSourceConfigResponse).optional(),
37
- links: linksResponse.optional(),
38
- })
39
- .transform((data) => ({
40
- data: data['data'],
41
- links: data['links'],
42
- }));
43
- });
44
-
45
- /**
46
- * The shape of the model mapping from the application shape into the api schema.
47
- * Is equal to application shape if all property names match the api schema
48
- */
49
- export const eventSourceConfigCollectionRequest = z.lazy(() => {
50
- return z
51
- .object({
52
- data: z.array(eventSourceConfigRequest).optional(),
53
- links: linksRequest.optional(),
54
- })
55
- .transform((data) => ({
56
- data: data['data'],
57
- links: data['links'],
58
- }));
59
- });
@@ -1,45 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const eventSourceConfigPayload = z.lazy(() => {
7
- return z.object({
8
- source: z.string(),
9
- });
10
- });
11
-
12
- /**
13
- *
14
- * @typedef {EventSourceConfigPayload} eventSourceConfigPayload
15
- * @property {string}
16
- */
17
- export type EventSourceConfigPayload = z.infer<typeof eventSourceConfigPayload>;
18
-
19
- /**
20
- * The shape of the model mapping from the api schema into the application shape.
21
- * Is equal to application shape if all property names match the api schema
22
- */
23
- export const eventSourceConfigPayloadResponse = z.lazy(() => {
24
- return z
25
- .object({
26
- source: z.string(),
27
- })
28
- .transform((data) => ({
29
- source: data['source'],
30
- }));
31
- });
32
-
33
- /**
34
- * The shape of the model mapping from the application shape into the api schema.
35
- * Is equal to application shape if all property names match the api schema
36
- */
37
- export const eventSourceConfigPayloadRequest = z.lazy(() => {
38
- return z
39
- .object({
40
- source: z.string(),
41
- })
42
- .transform((data) => ({
43
- source: data['source'],
44
- }));
45
- });
@@ -1,64 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import {
4
- EventSourceConfigPayload,
5
- eventSourceConfigPayload,
6
- eventSourceConfigPayloadRequest,
7
- eventSourceConfigPayloadResponse,
8
- } from './event-source-config-payload.js';
9
-
10
- /**
11
- * The shape of the model inside the application code - what the users use
12
- */
13
- export const eventSourceConfig = z.lazy(() => {
14
- return z.object({
15
- config: eventSourceConfigPayload,
16
- id: z.string(),
17
- name: z.string(),
18
- });
19
- });
20
-
21
- /**
22
- *
23
- * @typedef {EventSourceConfig} eventSourceConfig
24
- * @property {EventSourceConfigPayload}
25
- * @property {string}
26
- * @property {string}
27
- */
28
- export type EventSourceConfig = z.infer<typeof eventSourceConfig>;
29
-
30
- /**
31
- * The shape of the model mapping from the api schema into the application shape.
32
- * Is equal to application shape if all property names match the api schema
33
- */
34
- export const eventSourceConfigResponse = z.lazy(() => {
35
- return z
36
- .object({
37
- config: eventSourceConfigPayloadResponse,
38
- id: z.string(),
39
- name: z.string(),
40
- })
41
- .transform((data) => ({
42
- config: data['config'],
43
- id: data['id'],
44
- name: data['name'],
45
- }));
46
- });
47
-
48
- /**
49
- * The shape of the model mapping from the application shape into the api schema.
50
- * Is equal to application shape if all property names match the api schema
51
- */
52
- export const eventSourceConfigRequest = z.lazy(() => {
53
- return z
54
- .object({
55
- config: eventSourceConfigPayloadRequest,
56
- id: z.string(),
57
- name: z.string(),
58
- })
59
- .transform((data) => ({
60
- config: data['config'],
61
- id: data['id'],
62
- name: data['name'],
63
- }));
64
- });
@@ -1,54 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import { Links, links, linksRequest, linksResponse } from '../../common/links.js';
4
- import { GithubConfig, githubConfig, githubConfigRequest, githubConfigResponse } from './github-config.js';
5
-
6
- /**
7
- * The shape of the model inside the application code - what the users use
8
- */
9
- export const githubConfigCollection = z.lazy(() => {
10
- return z.object({
11
- data: z.array(githubConfig).optional(),
12
- links: links.optional(),
13
- });
14
- });
15
-
16
- /**
17
- *
18
- * @typedef {GithubConfigCollection} githubConfigCollection
19
- * @property {GithubConfig[]}
20
- * @property {Links}
21
- */
22
- export type GithubConfigCollection = z.infer<typeof githubConfigCollection>;
23
-
24
- /**
25
- * The shape of the model mapping from the api schema into the application shape.
26
- * Is equal to application shape if all property names match the api schema
27
- */
28
- export const githubConfigCollectionResponse = z.lazy(() => {
29
- return z
30
- .object({
31
- data: z.array(githubConfigResponse).optional(),
32
- links: linksResponse.optional(),
33
- })
34
- .transform((data) => ({
35
- data: data['data'],
36
- links: data['links'],
37
- }));
38
- });
39
-
40
- /**
41
- * The shape of the model mapping from the application shape into the api schema.
42
- * Is equal to application shape if all property names match the api schema
43
- */
44
- export const githubConfigCollectionRequest = z.lazy(() => {
45
- return z
46
- .object({
47
- data: z.array(githubConfigRequest).optional(),
48
- links: linksRequest.optional(),
49
- })
50
- .transform((data) => ({
51
- data: data['data'],
52
- links: data['links'],
53
- }));
54
- });
@@ -1,45 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const githubConfigPayload = z.lazy(() => {
7
- return z.object({
8
- webhookSigningSecret: z.string().min(1).max(100),
9
- });
10
- });
11
-
12
- /**
13
- *
14
- * @typedef {GithubConfigPayload} githubConfigPayload
15
- * @property {string} - The signing secret to verify incoming requests from Github
16
- */
17
- export type GithubConfigPayload = z.infer<typeof githubConfigPayload>;
18
-
19
- /**
20
- * The shape of the model mapping from the api schema into the application shape.
21
- * Is equal to application shape if all property names match the api schema
22
- */
23
- export const githubConfigPayloadResponse = z.lazy(() => {
24
- return z
25
- .object({
26
- webhook_signing_secret: z.string().min(1).max(100),
27
- })
28
- .transform((data) => ({
29
- webhookSigningSecret: data['webhook_signing_secret'],
30
- }));
31
- });
32
-
33
- /**
34
- * The shape of the model mapping from the application shape into the api schema.
35
- * Is equal to application shape if all property names match the api schema
36
- */
37
- export const githubConfigPayloadRequest = z.lazy(() => {
38
- return z
39
- .object({
40
- webhookSigningSecret: z.string().min(1).max(100),
41
- })
42
- .transform((data) => ({
43
- webhook_signing_secret: data['webhookSigningSecret'],
44
- }));
45
- });
@@ -1,64 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import {
4
- GithubConfigPayload,
5
- githubConfigPayload,
6
- githubConfigPayloadRequest,
7
- githubConfigPayloadResponse,
8
- } from './github-config-payload.js';
9
-
10
- /**
11
- * The shape of the model inside the application code - what the users use
12
- */
13
- export const githubConfig = z.lazy(() => {
14
- return z.object({
15
- config: githubConfigPayload,
16
- id: z.string(),
17
- name: z.string(),
18
- });
19
- });
20
-
21
- /**
22
- *
23
- * @typedef {GithubConfig} githubConfig
24
- * @property {GithubConfigPayload}
25
- * @property {string}
26
- * @property {string}
27
- */
28
- export type GithubConfig = z.infer<typeof githubConfig>;
29
-
30
- /**
31
- * The shape of the model mapping from the api schema into the application shape.
32
- * Is equal to application shape if all property names match the api schema
33
- */
34
- export const githubConfigResponse = z.lazy(() => {
35
- return z
36
- .object({
37
- config: githubConfigPayloadResponse,
38
- id: z.string(),
39
- name: z.string(),
40
- })
41
- .transform((data) => ({
42
- config: data['config'],
43
- id: data['id'],
44
- name: data['name'],
45
- }));
46
- });
47
-
48
- /**
49
- * The shape of the model mapping from the application shape into the api schema.
50
- * Is equal to application shape if all property names match the api schema
51
- */
52
- export const githubConfigRequest = z.lazy(() => {
53
- return z
54
- .object({
55
- config: githubConfigPayloadRequest,
56
- id: z.string(),
57
- name: z.string(),
58
- })
59
- .transform((data) => ({
60
- config: data['config'],
61
- id: data['id'],
62
- name: data['name'],
63
- }));
64
- });
@@ -1,54 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import { Links, links, linksRequest, linksResponse } from '../../common/links.js';
4
- import { StripeConfig, stripeConfig, stripeConfigRequest, stripeConfigResponse } from './stripe-config.js';
5
-
6
- /**
7
- * The shape of the model inside the application code - what the users use
8
- */
9
- export const stripeConfigCollection = z.lazy(() => {
10
- return z.object({
11
- data: z.array(stripeConfig).optional(),
12
- links: links.optional(),
13
- });
14
- });
15
-
16
- /**
17
- *
18
- * @typedef {StripeConfigCollection} stripeConfigCollection
19
- * @property {StripeConfig[]}
20
- * @property {Links}
21
- */
22
- export type StripeConfigCollection = z.infer<typeof stripeConfigCollection>;
23
-
24
- /**
25
- * The shape of the model mapping from the api schema into the application shape.
26
- * Is equal to application shape if all property names match the api schema
27
- */
28
- export const stripeConfigCollectionResponse = z.lazy(() => {
29
- return z
30
- .object({
31
- data: z.array(stripeConfigResponse).optional(),
32
- links: linksResponse.optional(),
33
- })
34
- .transform((data) => ({
35
- data: data['data'],
36
- links: data['links'],
37
- }));
38
- });
39
-
40
- /**
41
- * The shape of the model mapping from the application shape into the api schema.
42
- * Is equal to application shape if all property names match the api schema
43
- */
44
- export const stripeConfigCollectionRequest = z.lazy(() => {
45
- return z
46
- .object({
47
- data: z.array(stripeConfigRequest).optional(),
48
- links: linksRequest.optional(),
49
- })
50
- .transform((data) => ({
51
- data: data['data'],
52
- links: data['links'],
53
- }));
54
- });
@@ -1,45 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const stripeConfigPayload = z.lazy(() => {
7
- return z.object({
8
- webhookSigningSecret: z.string().min(1).max(100),
9
- });
10
- });
11
-
12
- /**
13
- *
14
- * @typedef {StripeConfigPayload} stripeConfigPayload
15
- * @property {string} - The signing secret to verify incoming requests from Stripe
16
- */
17
- export type StripeConfigPayload = z.infer<typeof stripeConfigPayload>;
18
-
19
- /**
20
- * The shape of the model mapping from the api schema into the application shape.
21
- * Is equal to application shape if all property names match the api schema
22
- */
23
- export const stripeConfigPayloadResponse = z.lazy(() => {
24
- return z
25
- .object({
26
- webhook_signing_secret: z.string().min(1).max(100),
27
- })
28
- .transform((data) => ({
29
- webhookSigningSecret: data['webhook_signing_secret'],
30
- }));
31
- });
32
-
33
- /**
34
- * The shape of the model mapping from the application shape into the api schema.
35
- * Is equal to application shape if all property names match the api schema
36
- */
37
- export const stripeConfigPayloadRequest = z.lazy(() => {
38
- return z
39
- .object({
40
- webhookSigningSecret: z.string().min(1).max(100),
41
- })
42
- .transform((data) => ({
43
- webhook_signing_secret: data['webhookSigningSecret'],
44
- }));
45
- });
@@ -1,64 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import {
4
- StripeConfigPayload,
5
- stripeConfigPayload,
6
- stripeConfigPayloadRequest,
7
- stripeConfigPayloadResponse,
8
- } from './stripe-config-payload.js';
9
-
10
- /**
11
- * The shape of the model inside the application code - what the users use
12
- */
13
- export const stripeConfig = z.lazy(() => {
14
- return z.object({
15
- config: stripeConfigPayload,
16
- id: z.string(),
17
- name: z.string(),
18
- });
19
- });
20
-
21
- /**
22
- *
23
- * @typedef {StripeConfig} stripeConfig
24
- * @property {StripeConfigPayload}
25
- * @property {string}
26
- * @property {string}
27
- */
28
- export type StripeConfig = z.infer<typeof stripeConfig>;
29
-
30
- /**
31
- * The shape of the model mapping from the api schema into the application shape.
32
- * Is equal to application shape if all property names match the api schema
33
- */
34
- export const stripeConfigResponse = z.lazy(() => {
35
- return z
36
- .object({
37
- config: stripeConfigPayloadResponse,
38
- id: z.string(),
39
- name: z.string(),
40
- })
41
- .transform((data) => ({
42
- config: data['config'],
43
- id: data['id'],
44
- name: data['name'],
45
- }));
46
- });
47
-
48
- /**
49
- * The shape of the model mapping from the application shape into the api schema.
50
- * Is equal to application shape if all property names match the api schema
51
- */
52
- export const stripeConfigRequest = z.lazy(() => {
53
- return z
54
- .object({
55
- config: stripeConfigPayloadRequest,
56
- id: z.string(),
57
- name: z.string(),
58
- })
59
- .transform((data) => ({
60
- config: data['config'],
61
- id: data['id'],
62
- name: data['name'],
63
- }));
64
- });
@@ -1,59 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- import { Links, links, linksRequest, linksResponse } from '../../common/links.js';
4
- import {
5
- TemplatesConfig,
6
- templatesConfig,
7
- templatesConfigRequest,
8
- templatesConfigResponse,
9
- } from './templates-config.js';
10
-
11
- /**
12
- * The shape of the model inside the application code - what the users use
13
- */
14
- export const templatesConfigCollection = z.lazy(() => {
15
- return z.object({
16
- data: z.array(templatesConfig).optional(),
17
- links: links.optional(),
18
- });
19
- });
20
-
21
- /**
22
- *
23
- * @typedef {TemplatesConfigCollection} templatesConfigCollection
24
- * @property {TemplatesConfig[]}
25
- * @property {Links}
26
- */
27
- export type TemplatesConfigCollection = z.infer<typeof templatesConfigCollection>;
28
-
29
- /**
30
- * The shape of the model mapping from the api schema into the application shape.
31
- * Is equal to application shape if all property names match the api schema
32
- */
33
- export const templatesConfigCollectionResponse = z.lazy(() => {
34
- return z
35
- .object({
36
- data: z.array(templatesConfigResponse).optional(),
37
- links: linksResponse.optional(),
38
- })
39
- .transform((data) => ({
40
- data: data['data'],
41
- links: data['links'],
42
- }));
43
- });
44
-
45
- /**
46
- * The shape of the model mapping from the application shape into the api schema.
47
- * Is equal to application shape if all property names match the api schema
48
- */
49
- export const templatesConfigCollectionRequest = z.lazy(() => {
50
- return z
51
- .object({
52
- data: z.array(templatesConfigRequest).optional(),
53
- links: linksRequest.optional(),
54
- })
55
- .transform((data) => ({
56
- data: data['data'],
57
- links: data['links'],
58
- }));
59
- });
@@ -1,57 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * The shape of the model inside the application code - what the users use
5
- */
6
- export const templatesConfig = z.lazy(() => {
7
- return z.object({
8
- config: z.any(),
9
- id: z.string(),
10
- name: z.string(),
11
- });
12
- });
13
-
14
- /**
15
- *
16
- * @typedef {TemplatesConfig} templatesConfig
17
- * @property {any}
18
- * @property {string}
19
- * @property {string}
20
- */
21
- export type TemplatesConfig = z.infer<typeof templatesConfig>;
22
-
23
- /**
24
- * The shape of the model mapping from the api schema into the application shape.
25
- * Is equal to application shape if all property names match the api schema
26
- */
27
- export const templatesConfigResponse = z.lazy(() => {
28
- return z
29
- .object({
30
- config: z.any(),
31
- id: z.string(),
32
- name: z.string(),
33
- })
34
- .transform((data) => ({
35
- config: data['config'],
36
- id: data['id'],
37
- name: data['name'],
38
- }));
39
- });
40
-
41
- /**
42
- * The shape of the model mapping from the application shape into the api schema.
43
- * Is equal to application shape if all property names match the api schema
44
- */
45
- export const templatesConfigRequest = z.lazy(() => {
46
- return z
47
- .object({
48
- config: z.any(),
49
- id: z.string(),
50
- name: z.string(),
51
- })
52
- .transform((data) => ({
53
- config: data['config'],
54
- id: data['id'],
55
- name: data['name'],
56
- }));
57
- });