magicbell-js 0.2.0 → 1.0.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.
- package/README.md +10 -25
- package/dist/commonjs/project-client/http/transport/request-builder.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts +26 -26
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts +16 -16
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js +3 -3
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts +1 -105
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.js +0 -419
- package/dist/commonjs/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/index.d.ts +0 -14
- package/dist/commonjs/project-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/index.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts +0 -15
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/transport/request-builder.js.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts +0 -7
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.js +0 -28
- package/dist/commonjs/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/user-client/services/integrations/models/index.d.ts +0 -1
- package/dist/commonjs/user-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/http/transport/request-builder.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts +26 -26
- package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts +16 -16
- package/dist/esm/project-client/services/broadcasts/models/broadcast.js +3 -3
- package/dist/esm/project-client/services/broadcasts/models/broadcast.js.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts +1 -105
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.js +0 -419
- package/dist/esm/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/project-client/services/integrations/models/index.d.ts +0 -14
- package/dist/esm/project-client/services/integrations/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/models/index.js.map +1 -1
- package/dist/esm/project-client/services/integrations/request-params.d.ts +0 -15
- package/dist/esm/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/esm/user-client/http/transport/request-builder.js.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts +0 -7
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.js +0 -28
- package/dist/esm/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/user-client/services/integrations/models/index.d.ts +0 -1
- package/dist/esm/user-client/services/integrations/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/project-client/http/transport/request-builder.ts +1 -1
- package/src/project-client/services/broadcasts/models/broadcast.ts +3 -3
- package/src/project-client/services/integrations/integrations-service.ts +0 -485
- package/src/project-client/services/integrations/models/index.ts +0 -14
- package/src/project-client/services/integrations/request-params.ts +0 -20
- package/src/user-client/http/transport/request-builder.ts +1 -1
- package/src/user-client/services/integrations/integrations-service.ts +0 -36
- package/src/user-client/services/integrations/models/index.ts +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/awssns-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/awssns-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/event-source-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/event-source-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/github-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/github-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/github-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/github-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/github-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts +0 -312
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts +0 -48
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js +0 -39
- package/dist/commonjs/project-client/services/integrations/models/stripe-config-payload.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts +0 -122
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.js +0 -50
- package/dist/commonjs/project-client/services/integrations/models/stripe-config.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.d.ts +0 -246
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.js +0 -46
- package/dist/commonjs/project-client/services/integrations/models/templates-config-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config.d.ts +0 -76
- package/dist/commonjs/project-client/services/integrations/models/templates-config.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/integrations/models/templates-config.js +0 -49
- package/dist/commonjs/project-client/services/integrations/models/templates-config.js.map +0 -1
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.d.ts +0 -76
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.d.ts.map +0 -1
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.js +0 -49
- package/dist/commonjs/user-client/services/integrations/models/templates-installation.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/awssns-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/awssns-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/awssns-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/awssns-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/awssns-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/event-source-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/event-source-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/event-source-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/event-source-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/event-source-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/github-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/github-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/github-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/github-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/github-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/github-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/github-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts +0 -312
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/stripe-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts +0 -48
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js +0 -36
- package/dist/esm/project-client/services/integrations/models/stripe-config-payload.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts +0 -122
- package/dist/esm/project-client/services/integrations/models/stripe-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/stripe-config.js +0 -47
- package/dist/esm/project-client/services/integrations/models/stripe-config.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.d.ts +0 -246
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.js +0 -43
- package/dist/esm/project-client/services/integrations/models/templates-config-collection.js.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config.d.ts +0 -76
- package/dist/esm/project-client/services/integrations/models/templates-config.d.ts.map +0 -1
- package/dist/esm/project-client/services/integrations/models/templates-config.js +0 -46
- package/dist/esm/project-client/services/integrations/models/templates-config.js.map +0 -1
- package/dist/esm/user-client/services/integrations/models/templates-installation.d.ts +0 -76
- package/dist/esm/user-client/services/integrations/models/templates-installation.d.ts.map +0 -1
- package/dist/esm/user-client/services/integrations/models/templates-installation.js +0 -46
- package/dist/esm/user-client/services/integrations/models/templates-installation.js.map +0 -1
- package/src/project-client/services/integrations/models/awssns-config-collection.ts +0 -54
- package/src/project-client/services/integrations/models/awssns-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/awssns-config.ts +0 -64
- package/src/project-client/services/integrations/models/event-source-config-collection.ts +0 -59
- package/src/project-client/services/integrations/models/event-source-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/event-source-config.ts +0 -64
- package/src/project-client/services/integrations/models/github-config-collection.ts +0 -54
- package/src/project-client/services/integrations/models/github-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/github-config.ts +0 -64
- package/src/project-client/services/integrations/models/stripe-config-collection.ts +0 -54
- package/src/project-client/services/integrations/models/stripe-config-payload.ts +0 -45
- package/src/project-client/services/integrations/models/stripe-config.ts +0 -64
- package/src/project-client/services/integrations/models/templates-config-collection.ts +0 -59
- package/src/project-client/services/integrations/models/templates-config.ts +0 -57
- 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
|
-
});
|