@lumeweb/pinner 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api/generated/content/content.msw.d.ts +8 -0
- package/dist/esm/api/generated/content/content.msw.js +147 -0
- package/dist/esm/api/generated/content/content.msw.js.map +1 -0
- package/dist/esm/api/generated/dns/dns.msw.d.ts +8 -0
- package/dist/esm/api/generated/dns/dns.msw.js +413 -0
- package/dist/esm/api/generated/dns/dns.msw.js.map +1 -0
- package/dist/esm/api/generated/files/files.msw.d.ts +8 -0
- package/dist/esm/api/generated/files/files.msw.js +150 -0
- package/dist/esm/api/generated/files/files.msw.js.map +1 -0
- package/dist/esm/api/generated/gateway/gateway.msw.d.ts +8 -0
- package/dist/esm/api/generated/gateway/gateway.msw.js +91 -0
- package/dist/esm/api/generated/gateway/gateway.msw.js.map +1 -0
- package/dist/esm/api/generated/index.msw.d.ts +10 -0
- package/dist/esm/api/generated/index.msw.js +11 -0
- package/dist/esm/api/generated/internal/internal.msw.d.ts +8 -0
- package/dist/esm/api/generated/internal/internal.msw.js +103 -0
- package/dist/esm/api/generated/internal/internal.msw.js.map +1 -0
- package/dist/esm/api/generated/ipns/ipns.msw.d.ts +8 -0
- package/dist/esm/api/generated/ipns/ipns.msw.js +205 -0
- package/dist/esm/api/generated/ipns/ipns.msw.js.map +1 -0
- package/dist/esm/api/generated/pinning/pinning.msw.d.ts +8 -0
- package/dist/esm/api/generated/pinning/pinning.msw.js +282 -0
- package/dist/esm/api/generated/pinning/pinning.msw.js.map +1 -0
- package/dist/esm/api/generated/schemas/iPNSRepublishResponse.d.ts +43 -0
- package/dist/esm/api/generated/schemas/websiteItem.d.ts +3 -0
- package/dist/esm/api/generated/schemas/websiteResponse.d.ts +3 -0
- package/dist/esm/api/generated/schemas/websiteValidateResponse.d.ts +1 -0
- package/dist/esm/api/generated/tus/tus.msw.d.ts +8 -0
- package/dist/esm/api/generated/tus/tus.msw.js +98 -0
- package/dist/esm/api/generated/tus/tus.msw.js.map +1 -0
- package/dist/esm/api/generated/websites/websites.msw.d.ts +8 -0
- package/dist/esm/api/generated/websites/websites.msw.js +417 -0
- package/dist/esm/api/generated/websites/websites.msw.js.map +1 -0
- package/dist/esm/api/ipns.d.ts +3 -2
- package/dist/esm/api/ipns.js +2 -3
- package/dist/esm/api/ipns.js.map +1 -1
- package/dist/esm/api/websites.d.ts +12 -2
- package/dist/esm/api/websites.js +19 -1
- package/dist/esm/api/websites.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/package.json +8 -3
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { faker } from "@faker-js/faker";
|
|
2
|
+
import { HttpResponse, delay, http } from "msw";
|
|
3
|
+
|
|
4
|
+
//#region src/api/generated/content/content.msw.ts
|
|
5
|
+
/**
|
|
6
|
+
* Generated by orval v8.10.0 🍺
|
|
7
|
+
* Do not edit manually.
|
|
8
|
+
* Portal IPFS Plugin API
|
|
9
|
+
*
|
|
10
|
+
## Portal IPFS Plugin API
|
|
11
|
+
|
|
12
|
+
A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
|
|
13
|
+
|
|
14
|
+
### IPFS Pinning Service API Compatibility
|
|
15
|
+
|
|
16
|
+
This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- **Pinning**: Add, list, update, and remove pinned content
|
|
21
|
+
- **Content**: Upload files, retrieve IPFS content, and manage metadata
|
|
22
|
+
- **IPNS**: Manage IPNS keys and publish content
|
|
23
|
+
- **Files**: Browse and manage pinned files with directory navigation
|
|
24
|
+
- **Websites**: Create and manage website hosting with DNS and SSL automation
|
|
25
|
+
|
|
26
|
+
### Authentication
|
|
27
|
+
|
|
28
|
+
All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
|
|
29
|
+
|
|
30
|
+
### Rate Limiting
|
|
31
|
+
|
|
32
|
+
API requests are rate-limited based on user account tier. See Portal documentation for current limits.
|
|
33
|
+
|
|
34
|
+
### Documentation
|
|
35
|
+
|
|
36
|
+
For detailed API usage examples and integration guides, visit the Portal documentation website.
|
|
37
|
+
|
|
38
|
+
* OpenAPI spec version: 1.0.0
|
|
39
|
+
*/
|
|
40
|
+
const getGetApiBlockMetaCidResponseMock = (overrideResponse = {}) => ({
|
|
41
|
+
block_size: faker.number.int(),
|
|
42
|
+
child_cid: Array.from({ length: faker.number.int({
|
|
43
|
+
min: 1,
|
|
44
|
+
max: 10
|
|
45
|
+
}) }, (_, i) => i + 1).map(() => faker.string.alpha({ length: {
|
|
46
|
+
min: 10,
|
|
47
|
+
max: 20
|
|
48
|
+
} })),
|
|
49
|
+
name: faker.string.alpha({ length: {
|
|
50
|
+
min: 10,
|
|
51
|
+
max: 20
|
|
52
|
+
} }),
|
|
53
|
+
type: faker.number.int(),
|
|
54
|
+
unixfs_size: faker.number.int(),
|
|
55
|
+
...overrideResponse
|
|
56
|
+
});
|
|
57
|
+
const getPostApiBlockMetaBatchResponseMock = (overrideResponse = {}) => ({
|
|
58
|
+
error: faker.string.alpha({ length: {
|
|
59
|
+
min: 10,
|
|
60
|
+
max: 20
|
|
61
|
+
} }),
|
|
62
|
+
...overrideResponse
|
|
63
|
+
});
|
|
64
|
+
const getGetApiInfoResponseMock = (overrideResponse = {}) => ({
|
|
65
|
+
announcement_addresses: Array.from({ length: faker.number.int({
|
|
66
|
+
min: 1,
|
|
67
|
+
max: 10
|
|
68
|
+
}) }, (_, i) => i + 1).map(() => faker.string.alpha({ length: {
|
|
69
|
+
min: 10,
|
|
70
|
+
max: 20
|
|
71
|
+
} })),
|
|
72
|
+
connection_addresses: Array.from({ length: faker.number.int({
|
|
73
|
+
min: 1,
|
|
74
|
+
max: 10
|
|
75
|
+
}) }, (_, i) => i + 1).map(() => faker.string.alpha({ length: {
|
|
76
|
+
min: 10,
|
|
77
|
+
max: 20
|
|
78
|
+
} })),
|
|
79
|
+
peer_id: faker.string.alpha({ length: {
|
|
80
|
+
min: 10,
|
|
81
|
+
max: 20
|
|
82
|
+
} }),
|
|
83
|
+
...overrideResponse
|
|
84
|
+
});
|
|
85
|
+
const getGetIpfsCidResponseMock = (overrideResponse = {}) => ({
|
|
86
|
+
error: faker.string.alpha({ length: {
|
|
87
|
+
min: 10,
|
|
88
|
+
max: 20
|
|
89
|
+
} }),
|
|
90
|
+
...overrideResponse
|
|
91
|
+
});
|
|
92
|
+
const getHeadIpfsCidResponseMock = (overrideResponse = {}) => ({
|
|
93
|
+
error: faker.string.alpha({ length: {
|
|
94
|
+
min: 10,
|
|
95
|
+
max: 20
|
|
96
|
+
} }),
|
|
97
|
+
...overrideResponse
|
|
98
|
+
});
|
|
99
|
+
const getGetApiBlockMetaCidMockHandler = (overrideResponse, options) => {
|
|
100
|
+
return http.get("*/api/block/meta/:cid", async (info) => {
|
|
101
|
+
await delay(0);
|
|
102
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiBlockMetaCidResponseMock(), { status: 200 });
|
|
103
|
+
}, options);
|
|
104
|
+
};
|
|
105
|
+
const getPostApiBlockMetaBatchMockHandler = (overrideResponse, options) => {
|
|
106
|
+
return http.post("*/api/block/meta/batch", async (info) => {
|
|
107
|
+
await delay(0);
|
|
108
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiBlockMetaBatchResponseMock(), { status: 200 });
|
|
109
|
+
}, options);
|
|
110
|
+
};
|
|
111
|
+
const getGetApiInfoMockHandler = (overrideResponse, options) => {
|
|
112
|
+
return http.get("*/api/info", async (info) => {
|
|
113
|
+
await delay(0);
|
|
114
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiInfoResponseMock(), { status: 200 });
|
|
115
|
+
}, options);
|
|
116
|
+
};
|
|
117
|
+
const getPostApiUploadMockHandler = (overrideResponse, options) => {
|
|
118
|
+
return http.post("*/api/upload", async (info) => {
|
|
119
|
+
await delay(0);
|
|
120
|
+
if (typeof overrideResponse === "function") await overrideResponse(info);
|
|
121
|
+
return new HttpResponse(null, { status: 200 });
|
|
122
|
+
}, options);
|
|
123
|
+
};
|
|
124
|
+
const getGetIpfsCidMockHandler = (overrideResponse, options) => {
|
|
125
|
+
return http.get("*/ipfs/:cid", async (info) => {
|
|
126
|
+
await delay(0);
|
|
127
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetIpfsCidResponseMock(), { status: 200 });
|
|
128
|
+
}, options);
|
|
129
|
+
};
|
|
130
|
+
const getHeadIpfsCidMockHandler = (overrideResponse, options) => {
|
|
131
|
+
return http.head("*/ipfs/:cid", async (info) => {
|
|
132
|
+
await delay(0);
|
|
133
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getHeadIpfsCidResponseMock(), { status: 200 });
|
|
134
|
+
}, options);
|
|
135
|
+
};
|
|
136
|
+
const getContentMock = () => [
|
|
137
|
+
getGetApiBlockMetaCidMockHandler(),
|
|
138
|
+
getPostApiBlockMetaBatchMockHandler(),
|
|
139
|
+
getGetApiInfoMockHandler(),
|
|
140
|
+
getPostApiUploadMockHandler(),
|
|
141
|
+
getGetIpfsCidMockHandler(),
|
|
142
|
+
getHeadIpfsCidMockHandler()
|
|
143
|
+
];
|
|
144
|
+
|
|
145
|
+
//#endregion
|
|
146
|
+
export { getContentMock };
|
|
147
|
+
//# sourceMappingURL=content.msw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.msw.js","names":[],"sources":["../../../../../src/api/generated/content/content.msw.ts"],"sourcesContent":["/**\n * Generated by orval v8.10.0 🍺\n * Do not edit manually.\n * Portal IPFS Plugin API\n *\n## Portal IPFS Plugin API\n\nA comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.\n\n### IPFS Pinning Service API Compatibility\n\nThis API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.\n\n### Features\n\n- **Pinning**: Add, list, update, and remove pinned content\n- **Content**: Upload files, retrieve IPFS content, and manage metadata\n- **IPNS**: Manage IPNS keys and publish content\n- **Files**: Browse and manage pinned files with directory navigation\n- **Websites**: Create and manage website hosting with DNS and SSL automation\n\n### Authentication\n\nAll API endpoints require authentication using JWT tokens obtained from the Portal authentication service.\n\n### Rate Limiting\n\nAPI requests are rate-limited based on user account tier. See Portal documentation for current limits.\n\n### Documentation\n\nFor detailed API usage examples and integration guides, visit the Portal documentation website.\n\n * OpenAPI spec version: 1.0.0\n */\nimport {\n faker\n} from '@faker-js/faker';\n\nimport {\n HttpResponse,\n delay,\n http\n} from 'msw';\nimport type {\n RequestHandlerOptions\n} from 'msw';\n\nimport type {\n BlockMetaResponse,\n ErrorResponse,\n InfoResponse\n} from '../schemas';\n\n\nexport const getGetApiBlockMetaCidResponseMock = (overrideResponse: Partial<Extract<BlockMetaResponse, object>> = {}): BlockMetaResponse => ({block_size: faker.number.int(), child_cid: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), name: faker.string.alpha({length: {min: 10, max: 20}}), type: faker.number.int(), unixfs_size: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiBlockMetaBatchResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiInfoResponseMock = (overrideResponse: Partial<Extract<InfoResponse, object>> = {}): InfoResponse => ({announcement_addresses: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), connection_addresses: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), peer_id: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetIpfsCidResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getHeadIpfsCidResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\n\nexport const getGetApiBlockMetaCidMockHandler = (overrideResponse?: BlockMetaResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BlockMetaResponse> | BlockMetaResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/block/meta/:cid', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiBlockMetaCidResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiBlockMetaBatchMockHandler = (overrideResponse?: ErrorResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse> | ErrorResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/block/meta/batch', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiBlockMetaBatchResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiInfoMockHandler = (overrideResponse?: InfoResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<InfoResponse> | InfoResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/info', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiInfoResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiUploadMockHandler = (overrideResponse?: void | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<void> | void), options?: RequestHandlerOptions) => {\n return http.post('*/api/upload', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n if (typeof overrideResponse === 'function') {await overrideResponse(info); }\n\n return new HttpResponse(null,\n { status: 200\n })\n }, options)\n}\n\nexport const getGetIpfsCidMockHandler = (overrideResponse?: ErrorResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ErrorResponse> | ErrorResponse), options?: RequestHandlerOptions) => {\n return http.get('*/ipfs/:cid', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetIpfsCidResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getHeadIpfsCidMockHandler = (overrideResponse?: ErrorResponse | ((info: Parameters<Parameters<typeof http.head>[1]>[0]) => Promise<ErrorResponse> | ErrorResponse), options?: RequestHandlerOptions) => {\n return http.head('*/ipfs/:cid', async (info: Parameters<Parameters<typeof http.head>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getHeadIpfsCidResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getContentMock = () => [\n getGetApiBlockMetaCidMockHandler(),\n getPostApiBlockMetaBatchMockHandler(),\n getGetApiInfoMockHandler(),\n getPostApiUploadMockHandler(),\n getGetIpfsCid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,OAAO,qBAAqB,WAAa,OAAM,iBAAiB,KAAK;AAEvE,SAAO,IAAI,aAAa,MACtB,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAGb,MAAa,4BAA4B,kBAAsI,YAAoC;AACjN,QAAO,KAAK,IAAI,eAAe,OAAO,SAAwD;AAAC,QAAM,MAAM,EAAE;AAG3G,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,2BAA2B,EAC3B,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAGb,MAAa,6BAA6B,kBAAuI,YAAoC;AACnN,QAAO,KAAK,KAAK,eAAe,OAAO,SAAyD;AAAC,QAAM,MAAM,EAAE;AAG7G,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,4BAA4B,EAC5B,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAEb,MAAa,uBAAuB;CAClC,kCAAkC;CAClC,qCAAqC;CACrC,0BAA0B;CAC1B,6BAA6B;CAC7B,0BAA0B;CAC1B,2BAA2B;CAC5B"}
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import { faker } from "@faker-js/faker";
|
|
2
|
+
import { HttpResponse, delay, http } from "msw";
|
|
3
|
+
|
|
4
|
+
//#region src/api/generated/dns/dns.msw.ts
|
|
5
|
+
/**
|
|
6
|
+
* Generated by orval v8.10.0 🍺
|
|
7
|
+
* Do not edit manually.
|
|
8
|
+
* Portal IPFS Plugin API
|
|
9
|
+
*
|
|
10
|
+
## Portal IPFS Plugin API
|
|
11
|
+
|
|
12
|
+
A comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.
|
|
13
|
+
|
|
14
|
+
### IPFS Pinning Service API Compatibility
|
|
15
|
+
|
|
16
|
+
This API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- **Pinning**: Add, list, update, and remove pinned content
|
|
21
|
+
- **Content**: Upload files, retrieve IPFS content, and manage metadata
|
|
22
|
+
- **IPNS**: Manage IPNS keys and publish content
|
|
23
|
+
- **Files**: Browse and manage pinned files with directory navigation
|
|
24
|
+
- **Websites**: Create and manage website hosting with DNS and SSL automation
|
|
25
|
+
|
|
26
|
+
### Authentication
|
|
27
|
+
|
|
28
|
+
All API endpoints require authentication using JWT tokens obtained from the Portal authentication service.
|
|
29
|
+
|
|
30
|
+
### Rate Limiting
|
|
31
|
+
|
|
32
|
+
API requests are rate-limited based on user account tier. See Portal documentation for current limits.
|
|
33
|
+
|
|
34
|
+
### Documentation
|
|
35
|
+
|
|
36
|
+
For detailed API usage examples and integration guides, visit the Portal documentation website.
|
|
37
|
+
|
|
38
|
+
* OpenAPI spec version: 1.0.0
|
|
39
|
+
*/
|
|
40
|
+
const getGetApiDnsZonesResponseMock = (overrideResponse = {}) => ({
|
|
41
|
+
data: Array.from({ length: faker.number.int({
|
|
42
|
+
min: 1,
|
|
43
|
+
max: 10
|
|
44
|
+
}) }, (_, i) => i + 1).map(() => ({
|
|
45
|
+
created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
46
|
+
domain: faker.string.alpha({ length: {
|
|
47
|
+
min: 10,
|
|
48
|
+
max: 20
|
|
49
|
+
} }),
|
|
50
|
+
id: faker.number.int(),
|
|
51
|
+
powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
52
|
+
min: 10,
|
|
53
|
+
max: 20
|
|
54
|
+
} }), void 0]),
|
|
55
|
+
status: faker.string.alpha({ length: {
|
|
56
|
+
min: 10,
|
|
57
|
+
max: 20
|
|
58
|
+
} }),
|
|
59
|
+
updated_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
60
|
+
user_id: faker.number.int()
|
|
61
|
+
})),
|
|
62
|
+
total: faker.number.int(),
|
|
63
|
+
...overrideResponse
|
|
64
|
+
});
|
|
65
|
+
const getPostApiDnsZonesResponseMock = (overrideResponse = {}) => faker.helpers.arrayElement([{
|
|
66
|
+
error: faker.string.alpha({ length: {
|
|
67
|
+
min: 10,
|
|
68
|
+
max: 20
|
|
69
|
+
} }),
|
|
70
|
+
...overrideResponse
|
|
71
|
+
}, {
|
|
72
|
+
created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
73
|
+
domain: faker.string.alpha({ length: {
|
|
74
|
+
min: 10,
|
|
75
|
+
max: 20
|
|
76
|
+
} }),
|
|
77
|
+
id: faker.number.int(),
|
|
78
|
+
powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
79
|
+
min: 10,
|
|
80
|
+
max: 20
|
|
81
|
+
} }), void 0]),
|
|
82
|
+
status: faker.string.alpha({ length: {
|
|
83
|
+
min: 10,
|
|
84
|
+
max: 20
|
|
85
|
+
} }),
|
|
86
|
+
updated_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
87
|
+
user_id: faker.number.int(),
|
|
88
|
+
...overrideResponse
|
|
89
|
+
}]);
|
|
90
|
+
const getDeleteApiDnsZonesIdResponseMock = (overrideResponse = {}) => ({
|
|
91
|
+
error: faker.string.alpha({ length: {
|
|
92
|
+
min: 10,
|
|
93
|
+
max: 20
|
|
94
|
+
} }),
|
|
95
|
+
...overrideResponse
|
|
96
|
+
});
|
|
97
|
+
const getGetApiDnsZonesIdResponseMock = (overrideResponse = {}) => ({
|
|
98
|
+
created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
99
|
+
domain: faker.string.alpha({ length: {
|
|
100
|
+
min: 10,
|
|
101
|
+
max: 20
|
|
102
|
+
} }),
|
|
103
|
+
id: faker.number.int(),
|
|
104
|
+
powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
105
|
+
min: 10,
|
|
106
|
+
max: 20
|
|
107
|
+
} }), void 0]),
|
|
108
|
+
status: faker.string.alpha({ length: {
|
|
109
|
+
min: 10,
|
|
110
|
+
max: 20
|
|
111
|
+
} }),
|
|
112
|
+
updated_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
113
|
+
user_id: faker.number.int(),
|
|
114
|
+
...overrideResponse
|
|
115
|
+
});
|
|
116
|
+
const getPutApiDnsZonesIdResponseMock = (overrideResponse = {}) => ({
|
|
117
|
+
created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
118
|
+
domain: faker.string.alpha({ length: {
|
|
119
|
+
min: 10,
|
|
120
|
+
max: 20
|
|
121
|
+
} }),
|
|
122
|
+
id: faker.number.int(),
|
|
123
|
+
powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
124
|
+
min: 10,
|
|
125
|
+
max: 20
|
|
126
|
+
} }), void 0]),
|
|
127
|
+
status: faker.string.alpha({ length: {
|
|
128
|
+
min: 10,
|
|
129
|
+
max: 20
|
|
130
|
+
} }),
|
|
131
|
+
updated_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
132
|
+
user_id: faker.number.int(),
|
|
133
|
+
...overrideResponse
|
|
134
|
+
});
|
|
135
|
+
const getGetApiDnsZonesIdRecordsResponseMock = (overrideResponse = {}) => ({
|
|
136
|
+
data: Array.from({ length: faker.number.int({
|
|
137
|
+
min: 1,
|
|
138
|
+
max: 10
|
|
139
|
+
}) }, (_, i) => i + 1).map(() => ({
|
|
140
|
+
content: faker.string.alpha({ length: {
|
|
141
|
+
min: 10,
|
|
142
|
+
max: 20
|
|
143
|
+
} }),
|
|
144
|
+
disabled: faker.datatype.boolean(),
|
|
145
|
+
name: faker.string.alpha({ length: {
|
|
146
|
+
min: 10,
|
|
147
|
+
max: 20
|
|
148
|
+
} }),
|
|
149
|
+
ttl: faker.number.int(),
|
|
150
|
+
type: faker.string.alpha({ length: {
|
|
151
|
+
min: 10,
|
|
152
|
+
max: 20
|
|
153
|
+
} }),
|
|
154
|
+
zone_id: faker.number.int()
|
|
155
|
+
})),
|
|
156
|
+
total: faker.number.int(),
|
|
157
|
+
...overrideResponse
|
|
158
|
+
});
|
|
159
|
+
const getPostApiDnsZonesIdRecordsResponseMock = (overrideResponse = {}) => faker.helpers.arrayElement([{
|
|
160
|
+
error: faker.string.alpha({ length: {
|
|
161
|
+
min: 10,
|
|
162
|
+
max: 20
|
|
163
|
+
} }),
|
|
164
|
+
...overrideResponse
|
|
165
|
+
}, {
|
|
166
|
+
content: faker.string.alpha({ length: {
|
|
167
|
+
min: 10,
|
|
168
|
+
max: 20
|
|
169
|
+
} }),
|
|
170
|
+
disabled: faker.datatype.boolean(),
|
|
171
|
+
name: faker.string.alpha({ length: {
|
|
172
|
+
min: 10,
|
|
173
|
+
max: 20
|
|
174
|
+
} }),
|
|
175
|
+
ttl: faker.number.int(),
|
|
176
|
+
type: faker.string.alpha({ length: {
|
|
177
|
+
min: 10,
|
|
178
|
+
max: 20
|
|
179
|
+
} }),
|
|
180
|
+
zone_id: faker.number.int(),
|
|
181
|
+
...overrideResponse
|
|
182
|
+
}]);
|
|
183
|
+
const getDeleteApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse = {}) => ({
|
|
184
|
+
error: faker.string.alpha({ length: {
|
|
185
|
+
min: 10,
|
|
186
|
+
max: 20
|
|
187
|
+
} }),
|
|
188
|
+
...overrideResponse
|
|
189
|
+
});
|
|
190
|
+
const getGetApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse = {}) => ({
|
|
191
|
+
content: faker.string.alpha({ length: {
|
|
192
|
+
min: 10,
|
|
193
|
+
max: 20
|
|
194
|
+
} }),
|
|
195
|
+
disabled: faker.datatype.boolean(),
|
|
196
|
+
name: faker.string.alpha({ length: {
|
|
197
|
+
min: 10,
|
|
198
|
+
max: 20
|
|
199
|
+
} }),
|
|
200
|
+
ttl: faker.number.int(),
|
|
201
|
+
type: faker.string.alpha({ length: {
|
|
202
|
+
min: 10,
|
|
203
|
+
max: 20
|
|
204
|
+
} }),
|
|
205
|
+
zone_id: faker.number.int(),
|
|
206
|
+
...overrideResponse
|
|
207
|
+
});
|
|
208
|
+
const getPutApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse = {}) => ({
|
|
209
|
+
content: faker.string.alpha({ length: {
|
|
210
|
+
min: 10,
|
|
211
|
+
max: 20
|
|
212
|
+
} }),
|
|
213
|
+
disabled: faker.datatype.boolean(),
|
|
214
|
+
name: faker.string.alpha({ length: {
|
|
215
|
+
min: 10,
|
|
216
|
+
max: 20
|
|
217
|
+
} }),
|
|
218
|
+
ttl: faker.number.int(),
|
|
219
|
+
type: faker.string.alpha({ length: {
|
|
220
|
+
min: 10,
|
|
221
|
+
max: 20
|
|
222
|
+
} }),
|
|
223
|
+
zone_id: faker.number.int(),
|
|
224
|
+
...overrideResponse
|
|
225
|
+
});
|
|
226
|
+
const getPostApiDnsZonesIdRecordsBulkResponseMock = (overrideResponse = {}) => ({
|
|
227
|
+
records: Array.from({ length: faker.number.int({
|
|
228
|
+
min: 1,
|
|
229
|
+
max: 10
|
|
230
|
+
}) }, (_, i) => i + 1).map(() => ({
|
|
231
|
+
content: faker.string.alpha({ length: {
|
|
232
|
+
min: 10,
|
|
233
|
+
max: 20
|
|
234
|
+
} }),
|
|
235
|
+
disabled: faker.datatype.boolean(),
|
|
236
|
+
name: faker.string.alpha({ length: {
|
|
237
|
+
min: 10,
|
|
238
|
+
max: 20
|
|
239
|
+
} }),
|
|
240
|
+
ttl: faker.number.int(),
|
|
241
|
+
type: faker.string.alpha({ length: {
|
|
242
|
+
min: 10,
|
|
243
|
+
max: 20
|
|
244
|
+
} }),
|
|
245
|
+
zone_id: faker.number.int()
|
|
246
|
+
})),
|
|
247
|
+
...overrideResponse
|
|
248
|
+
});
|
|
249
|
+
const getPostApiDnsZonesIdRecordsBulkDeleteResponseMock = (overrideResponse = {}) => ({
|
|
250
|
+
results: Array.from({ length: faker.number.int({
|
|
251
|
+
min: 1,
|
|
252
|
+
max: 10
|
|
253
|
+
}) }, (_, i) => i + 1).map(() => ({
|
|
254
|
+
error: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
255
|
+
min: 10,
|
|
256
|
+
max: 20
|
|
257
|
+
} }), void 0]),
|
|
258
|
+
name: faker.string.alpha({ length: {
|
|
259
|
+
min: 10,
|
|
260
|
+
max: 20
|
|
261
|
+
} }),
|
|
262
|
+
status: faker.string.alpha({ length: {
|
|
263
|
+
min: 10,
|
|
264
|
+
max: 20
|
|
265
|
+
} }),
|
|
266
|
+
type: faker.string.alpha({ length: {
|
|
267
|
+
min: 10,
|
|
268
|
+
max: 20
|
|
269
|
+
} })
|
|
270
|
+
})),
|
|
271
|
+
...overrideResponse
|
|
272
|
+
});
|
|
273
|
+
const getGetApiDnsZonesIdStatusResponseMock = (overrideResponse = {}) => ({
|
|
274
|
+
created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
275
|
+
domain: faker.string.alpha({ length: {
|
|
276
|
+
min: 10,
|
|
277
|
+
max: 20
|
|
278
|
+
} }),
|
|
279
|
+
id: faker.number.int(),
|
|
280
|
+
powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
281
|
+
min: 10,
|
|
282
|
+
max: 20
|
|
283
|
+
} }), void 0]),
|
|
284
|
+
status: faker.string.alpha({ length: {
|
|
285
|
+
min: 10,
|
|
286
|
+
max: 20
|
|
287
|
+
} }),
|
|
288
|
+
updated_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
289
|
+
user_id: faker.number.int(),
|
|
290
|
+
...overrideResponse
|
|
291
|
+
});
|
|
292
|
+
const getPostApiDnsZonesIdValidateResponseMock = (overrideResponse = {}) => ({
|
|
293
|
+
checked_at: faker.date.past().toISOString().slice(0, 19) + "Z",
|
|
294
|
+
message: faker.string.alpha({ length: {
|
|
295
|
+
min: 10,
|
|
296
|
+
max: 20
|
|
297
|
+
} }),
|
|
298
|
+
nameservers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({
|
|
299
|
+
min: 1,
|
|
300
|
+
max: 10
|
|
301
|
+
}) }, (_, i) => i + 1).map(() => faker.string.alpha({ length: {
|
|
302
|
+
min: 10,
|
|
303
|
+
max: 20
|
|
304
|
+
} })), void 0]),
|
|
305
|
+
valid: faker.datatype.boolean(),
|
|
306
|
+
...overrideResponse
|
|
307
|
+
});
|
|
308
|
+
const getGetApiDnsZonesMockHandler = (overrideResponse, options) => {
|
|
309
|
+
return http.get("*/api/dns/zones", async (info) => {
|
|
310
|
+
await delay(0);
|
|
311
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiDnsZonesResponseMock(), { status: 200 });
|
|
312
|
+
}, options);
|
|
313
|
+
};
|
|
314
|
+
const getPostApiDnsZonesMockHandler = (overrideResponse, options) => {
|
|
315
|
+
return http.post("*/api/dns/zones", async (info) => {
|
|
316
|
+
await delay(0);
|
|
317
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiDnsZonesResponseMock(), { status: 200 });
|
|
318
|
+
}, options);
|
|
319
|
+
};
|
|
320
|
+
const getDeleteApiDnsZonesIdMockHandler = (overrideResponse, options) => {
|
|
321
|
+
return http.delete("*/api/dns/zones/:id", async (info) => {
|
|
322
|
+
await delay(0);
|
|
323
|
+
const resolvedBody = overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getDeleteApiDnsZonesIdResponseMock();
|
|
324
|
+
return resolvedBody === void 0 ? new HttpResponse(null, { status: 204 }) : HttpResponse.json(resolvedBody, { status: 200 });
|
|
325
|
+
}, options);
|
|
326
|
+
};
|
|
327
|
+
const getGetApiDnsZonesIdMockHandler = (overrideResponse, options) => {
|
|
328
|
+
return http.get("*/api/dns/zones/:id", async (info) => {
|
|
329
|
+
await delay(0);
|
|
330
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiDnsZonesIdResponseMock(), { status: 200 });
|
|
331
|
+
}, options);
|
|
332
|
+
};
|
|
333
|
+
const getPutApiDnsZonesIdMockHandler = (overrideResponse, options) => {
|
|
334
|
+
return http.put("*/api/dns/zones/:id", async (info) => {
|
|
335
|
+
await delay(0);
|
|
336
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPutApiDnsZonesIdResponseMock(), { status: 200 });
|
|
337
|
+
}, options);
|
|
338
|
+
};
|
|
339
|
+
const getGetApiDnsZonesIdRecordsMockHandler = (overrideResponse, options) => {
|
|
340
|
+
return http.get("*/api/dns/zones/:id/records", async (info) => {
|
|
341
|
+
await delay(0);
|
|
342
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiDnsZonesIdRecordsResponseMock(), { status: 200 });
|
|
343
|
+
}, options);
|
|
344
|
+
};
|
|
345
|
+
const getPostApiDnsZonesIdRecordsMockHandler = (overrideResponse, options) => {
|
|
346
|
+
return http.post("*/api/dns/zones/:id/records", async (info) => {
|
|
347
|
+
await delay(0);
|
|
348
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiDnsZonesIdRecordsResponseMock(), { status: 200 });
|
|
349
|
+
}, options);
|
|
350
|
+
};
|
|
351
|
+
const getDeleteApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse, options) => {
|
|
352
|
+
return http.delete("*/api/dns/zones/:id/records/:name/:type", async (info) => {
|
|
353
|
+
await delay(0);
|
|
354
|
+
const resolvedBody = overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getDeleteApiDnsZonesIdRecordsNameTypeResponseMock();
|
|
355
|
+
return resolvedBody === void 0 ? new HttpResponse(null, { status: 204 }) : HttpResponse.json(resolvedBody, { status: 200 });
|
|
356
|
+
}, options);
|
|
357
|
+
};
|
|
358
|
+
const getGetApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse, options) => {
|
|
359
|
+
return http.get("*/api/dns/zones/:id/records/:name/:type", async (info) => {
|
|
360
|
+
await delay(0);
|
|
361
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiDnsZonesIdRecordsNameTypeResponseMock(), { status: 200 });
|
|
362
|
+
}, options);
|
|
363
|
+
};
|
|
364
|
+
const getPutApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse, options) => {
|
|
365
|
+
return http.put("*/api/dns/zones/:id/records/:name/:type", async (info) => {
|
|
366
|
+
await delay(0);
|
|
367
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPutApiDnsZonesIdRecordsNameTypeResponseMock(), { status: 200 });
|
|
368
|
+
}, options);
|
|
369
|
+
};
|
|
370
|
+
const getPostApiDnsZonesIdRecordsBulkMockHandler = (overrideResponse, options) => {
|
|
371
|
+
return http.post("*/api/dns/zones/:id/records/bulk", async (info) => {
|
|
372
|
+
await delay(0);
|
|
373
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiDnsZonesIdRecordsBulkResponseMock(), { status: 200 });
|
|
374
|
+
}, options);
|
|
375
|
+
};
|
|
376
|
+
const getPostApiDnsZonesIdRecordsBulkDeleteMockHandler = (overrideResponse, options) => {
|
|
377
|
+
return http.post("*/api/dns/zones/:id/records/bulk-delete", async (info) => {
|
|
378
|
+
await delay(0);
|
|
379
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiDnsZonesIdRecordsBulkDeleteResponseMock(), { status: 200 });
|
|
380
|
+
}, options);
|
|
381
|
+
};
|
|
382
|
+
const getGetApiDnsZonesIdStatusMockHandler = (overrideResponse, options) => {
|
|
383
|
+
return http.get("*/api/dns/zones/:id/status", async (info) => {
|
|
384
|
+
await delay(0);
|
|
385
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiDnsZonesIdStatusResponseMock(), { status: 200 });
|
|
386
|
+
}, options);
|
|
387
|
+
};
|
|
388
|
+
const getPostApiDnsZonesIdValidateMockHandler = (overrideResponse, options) => {
|
|
389
|
+
return http.post("*/api/dns/zones/:id/validate", async (info) => {
|
|
390
|
+
await delay(0);
|
|
391
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiDnsZonesIdValidateResponseMock(), { status: 200 });
|
|
392
|
+
}, options);
|
|
393
|
+
};
|
|
394
|
+
const getDnsMock = () => [
|
|
395
|
+
getGetApiDnsZonesMockHandler(),
|
|
396
|
+
getPostApiDnsZonesMockHandler(),
|
|
397
|
+
getDeleteApiDnsZonesIdMockHandler(),
|
|
398
|
+
getGetApiDnsZonesIdMockHandler(),
|
|
399
|
+
getPutApiDnsZonesIdMockHandler(),
|
|
400
|
+
getGetApiDnsZonesIdRecordsMockHandler(),
|
|
401
|
+
getPostApiDnsZonesIdRecordsMockHandler(),
|
|
402
|
+
getDeleteApiDnsZonesIdRecordsNameTypeMockHandler(),
|
|
403
|
+
getGetApiDnsZonesIdRecordsNameTypeMockHandler(),
|
|
404
|
+
getPutApiDnsZonesIdRecordsNameTypeMockHandler(),
|
|
405
|
+
getPostApiDnsZonesIdRecordsBulkMockHandler(),
|
|
406
|
+
getPostApiDnsZonesIdRecordsBulkDeleteMockHandler(),
|
|
407
|
+
getGetApiDnsZonesIdStatusMockHandler(),
|
|
408
|
+
getPostApiDnsZonesIdValidateMockHandler()
|
|
409
|
+
];
|
|
410
|
+
|
|
411
|
+
//#endregion
|
|
412
|
+
export { getDnsMock };
|
|
413
|
+
//# sourceMappingURL=dns.msw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dns.msw.js","names":[],"sources":["../../../../../src/api/generated/dns/dns.msw.ts"],"sourcesContent":["/**\n * Generated by orval v8.10.0 🍺\n * Do not edit manually.\n * Portal IPFS Plugin API\n *\n## Portal IPFS Plugin API\n\nA comprehensive API for IPFS content management, including pinning services, file operations, IPNS key management, and website hosting.\n\n### IPFS Pinning Service API Compatibility\n\nThis API is fully compatible with the [IPFS Pinning Service API specification](https://github.com/ipfs/pinning-services-api-spec), an implementation-agnostic API standard for pinning service providers. This ensures interoperability with existing IPFS pinning clients and tools.\n\n### Features\n\n- **Pinning**: Add, list, update, and remove pinned content\n- **Content**: Upload files, retrieve IPFS content, and manage metadata\n- **IPNS**: Manage IPNS keys and publish content\n- **Files**: Browse and manage pinned files with directory navigation\n- **Websites**: Create and manage website hosting with DNS and SSL automation\n\n### Authentication\n\nAll API endpoints require authentication using JWT tokens obtained from the Portal authentication service.\n\n### Rate Limiting\n\nAPI requests are rate-limited based on user account tier. See Portal documentation for current limits.\n\n### Documentation\n\nFor detailed API usage examples and integration guides, visit the Portal documentation website.\n\n * OpenAPI spec version: 1.0.0\n */\nimport {\n faker\n} from '@faker-js/faker';\n\nimport {\n HttpResponse,\n delay,\n http\n} from 'msw';\nimport type {\n RequestHandlerOptions\n} from 'msw';\n\nimport type {\n BulkDeleteResponse,\n BulkRecordsResponse,\n ErrorResponse,\n RecordResponse,\n RecordResponseResponse,\n ValidationResponse,\n ZoneListResponseResponse,\n ZoneResponse\n} from '../schemas';\n\n\nexport const getGetApiDnsZonesResponseMock = (overrideResponse: Partial<Extract<ZoneListResponseResponse, object>> = {}): ZoneListResponseResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int()})), total: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | ZoneResponse, object>> = {}): ErrorResponse | ZoneResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse}]))\n\nexport const getDeleteApiDnsZonesIdResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdResponseMock = (overrideResponse: Partial<Extract<ZoneResponse, object>> = {}): ZoneResponse => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse})\n\nexport const getPutApiDnsZonesIdResponseMock = (overrideResponse: Partial<Extract<ZoneResponse, object>> = {}): ZoneResponse => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdRecordsResponseMock = (overrideResponse: Partial<Extract<RecordResponseResponse, object>> = {}): RecordResponseResponse => ({data: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int()})), total: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdRecordsResponseMock = (overrideResponse: Partial<Extract<ErrorResponse | RecordResponse, object>> = {}): ErrorResponse | RecordResponse => (faker.helpers.arrayElement([{error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse}, {content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int(), ...overrideResponse}]))\n\nexport const getDeleteApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse: Partial<Extract<ErrorResponse, object>> = {}): ErrorResponse => ({error: faker.string.alpha({length: {min: 10, max: 20}}), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse: Partial<Extract<RecordResponse, object>> = {}): RecordResponse => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int(), ...overrideResponse})\n\nexport const getPutApiDnsZonesIdRecordsNameTypeResponseMock = (overrideResponse: Partial<Extract<RecordResponse, object>> = {}): RecordResponse => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdRecordsBulkResponseMock = (overrideResponse: Partial<Extract<BulkRecordsResponse, object>> = {}): BulkRecordsResponse => ({records: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({content: faker.string.alpha({length: {min: 10, max: 20}}), disabled: faker.datatype.boolean(), name: faker.string.alpha({length: {min: 10, max: 20}}), ttl: faker.number.int(), type: faker.string.alpha({length: {min: 10, max: 20}}), zone_id: faker.number.int()})), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdRecordsBulkDeleteResponseMock = (overrideResponse: Partial<Extract<BulkDeleteResponse, object>> = {}): BulkDeleteResponse => ({results: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({error: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), name: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.string.alpha({length: {min: 10, max: 20}}), type: faker.string.alpha({length: {min: 10, max: 20}})})), ...overrideResponse})\n\nexport const getGetApiDnsZonesIdStatusResponseMock = (overrideResponse: Partial<Extract<ZoneResponse, object>> = {}): ZoneResponse => ({created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', domain: faker.string.alpha({length: {min: 10, max: 20}}), id: faker.number.int(), powerdns_zone_id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.string.alpha({length: {min: 10, max: 20}}), updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', user_id: faker.number.int(), ...overrideResponse})\n\nexport const getPostApiDnsZonesIdValidateResponseMock = (overrideResponse: Partial<Extract<ValidationResponse, object>> = {}): ValidationResponse => ({checked_at: faker.date.past().toISOString().slice(0, 19) + 'Z', message: faker.string.alpha({length: {min: 10, max: 20}}), nameservers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 10, max: 20}}))), undefined]), valid: faker.datatype.boolean(), ...overrideResponse})\n\n\nexport const getGetApiDnsZonesMockHandler = (overrideResponse?: ZoneListResponseResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ZoneListResponseResponse> | ZoneListResponseResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiDnsZonesResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesMockHandler = (overrideResponse?: ErrorResponse | ZoneResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | ZoneResponse> | ErrorResponse | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiDnsZonesResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeleteApiDnsZonesIdMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/dns/zones/:id', async (info: Parameters<Parameters<typeof http.delete>[1]>[0]) => {await delay(0);\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getDeleteApiDnsZonesIdResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdMockHandler = (overrideResponse?: ZoneResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ZoneResponse> | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiDnsZonesIdResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPutApiDnsZonesIdMockHandler = (overrideResponse?: ZoneResponse | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<ZoneResponse> | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.put('*/api/dns/zones/:id', async (info: Parameters<Parameters<typeof http.put>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPutApiDnsZonesIdResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdRecordsMockHandler = (overrideResponse?: RecordResponseResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<RecordResponseResponse> | RecordResponseResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id/records', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiDnsZonesIdRecordsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdRecordsMockHandler = (overrideResponse?: ErrorResponse | RecordResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ErrorResponse | RecordResponse> | ErrorResponse | RecordResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/records', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiDnsZonesIdRecordsResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getDeleteApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse?: ErrorResponse | void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ErrorResponse | void> | ErrorResponse | void), options?: RequestHandlerOptions) => {\n return http.delete('*/api/dns/zones/:id/records/:name/:type', async (info: Parameters<Parameters<typeof http.delete>[1]>[0]) => {await delay(0);\n\n const resolvedBody = overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getDeleteApiDnsZonesIdRecordsNameTypeResponseMock();\n return resolvedBody === undefined\n ? new HttpResponse(null, { status: 204 })\n : HttpResponse.json(resolvedBody, { status: 200 })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse?: RecordResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<RecordResponse> | RecordResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id/records/:name/:type', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiDnsZonesIdRecordsNameTypeResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPutApiDnsZonesIdRecordsNameTypeMockHandler = (overrideResponse?: RecordResponse | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<RecordResponse> | RecordResponse), options?: RequestHandlerOptions) => {\n return http.put('*/api/dns/zones/:id/records/:name/:type', async (info: Parameters<Parameters<typeof http.put>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPutApiDnsZonesIdRecordsNameTypeResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdRecordsBulkMockHandler = (overrideResponse?: BulkRecordsResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BulkRecordsResponse> | BulkRecordsResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/records/bulk', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiDnsZonesIdRecordsBulkResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdRecordsBulkDeleteMockHandler = (overrideResponse?: BulkDeleteResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BulkDeleteResponse> | BulkDeleteResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/records/bulk-delete', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiDnsZonesIdRecordsBulkDeleteResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getGetApiDnsZonesIdStatusMockHandler = (overrideResponse?: ZoneResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ZoneResponse> | ZoneResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/dns/zones/:id/status', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiDnsZonesIdStatusResponseMock(),\n { status: 200\n })\n }, options)\n}\n\nexport const getPostApiDnsZonesIdValidateMockHandler = (overrideResponse?: ValidationResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ValidationResponse> | ValidationResponse), options?: RequestHandlerOptions) => {\n return http.post('*/api/dns/zones/:id/validate', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getPostApiDnsZonesIdValidateResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getDnsMock = () => [\n getGetApiDnsZonesMockHandler(),\n getPostApiDnsZonesMockHandler(),\n getDeleteApiDnsZonesIdMockHandler(),\n getGetApiDnsZonesIdMockHandler(),\n getPutApiDnsZonesIdMockHandler(),\n getGetApiDnsZonesIdRecordsMockHandler(),\n getPostApiDnsZonesIdRecordsMockHandler(),\n getDeleteApiDnsZonesIdRecordsNameTypeMockHandler(),\n getGetApiDnsZonesIdRecordsNameTypeMockHandler(),\n getPutApiDnsZonesIdRecordsNameTypeMockHandler(),\n getPostApiDnsZonesIdRecordsBulkMockHandler(),\n getPostApiDnsZonesIdRecordsBulkDeleteMockHandler(),\n getGetApiDnsZonesIdStatusMockHandler(),\n getPostApiDnsZonesIdValidateMockHandler()\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,MAAa,iCAAiC,mBAAuE,EAAE,MAAgC;CAAC,MAAM,MAAM,KAAK,EAAE,QAAQ,MAAM,OAAO,IAAI;EAAC,KAAK;EAAG,KAAK;EAAG,CAAC,EAAE,GAAG,GAAG,MAAM,IAAI,EAAE,CAAC,WAAW;EAAC,YAAY,MAAM,KAAK,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,GAAG;EAAK,QAAQ,MAAM,OAAO,MAAM,EAAC,QAAQ;GAAC,KAAK;GAAI,KAAK;GAAG,EAAC,CAAC;EAAE,IAAI,MAAM,OAAO,KAAK;EAAE,kBAAkB,MAAM,QAAQ,aAAa,CAAC,MAAM,OAAO,MAAM,EAAC,QAAQ;GAAC,KAAK;GAAI,KAAK;GAAG,EAAC,CAAC,EAAE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