@remnawave/backend-contract 2.0.0-alpha.8 → 2.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/build/backend/api/controllers/index.d.ts +1 -0
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +1 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +16 -0
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
  6. package/build/backend/api/controllers/infra-billing.js +22 -0
  7. package/build/backend/api/routes.d.ts +14 -0
  8. package/build/backend/api/routes.d.ts.map +1 -1
  9. package/build/backend/api/routes.js +14 -0
  10. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  11. package/build/backend/commands/index.d.ts +1 -0
  12. package/build/backend/commands/index.d.ts.map +1 -1
  13. package/build/backend/commands/index.js +1 -0
  14. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +64 -0
  15. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  16. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  17. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  18. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  19. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  20. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +58 -0
  21. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  22. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  23. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +79 -0
  24. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  25. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  26. package/build/backend/commands/infra-billing/index.d.ts +6 -0
  27. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  28. package/build/backend/commands/infra-billing/index.js +21 -0
  29. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +67 -0
  30. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  31. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  32. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  33. package/build/backend/commands/nodes/actions/disable.command.d.ts +59 -0
  34. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  35. package/build/backend/commands/nodes/actions/enable.command.d.ts +59 -0
  36. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  37. package/build/backend/commands/nodes/actions/reorder.command.d.ts +82 -0
  38. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  39. package/build/backend/commands/nodes/create.command.d.ts +62 -0
  40. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  41. package/build/backend/commands/nodes/create.command.js +1 -0
  42. package/build/backend/commands/nodes/get-all.command.d.ts +59 -0
  43. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  44. package/build/backend/commands/nodes/get-one.command.d.ts +59 -0
  45. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  46. package/build/backend/commands/nodes/update.command.d.ts +85 -0
  47. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  48. package/build/backend/commands/nodes/update.command.js +1 -0
  49. package/build/backend/constants/errors/errors.d.ts +30 -0
  50. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  51. package/build/backend/constants/errors/errors.js +30 -0
  52. package/build/backend/models/index.d.ts +1 -0
  53. package/build/backend/models/index.d.ts.map +1 -1
  54. package/build/backend/models/index.js +1 -0
  55. package/build/backend/models/infra-provider.schema.d.ts +24 -0
  56. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  57. package/build/backend/models/infra-provider.schema.js +18 -0
  58. package/build/backend/models/nodes.schema.d.ts +41 -0
  59. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  60. package/build/backend/models/nodes.schema.js +3 -0
  61. package/build/frontend/api/controllers/index.js +1 -0
  62. package/build/frontend/api/controllers/infra-billing.js +22 -0
  63. package/build/frontend/api/routes.js +14 -0
  64. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  65. package/build/frontend/commands/index.js +1 -0
  66. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  67. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  68. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  69. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  70. package/build/frontend/commands/infra-billing/index.js +21 -0
  71. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  72. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  73. package/build/frontend/commands/nodes/create.command.js +1 -0
  74. package/build/frontend/commands/nodes/update.command.js +1 -0
  75. package/build/frontend/constants/errors/errors.js +30 -0
  76. package/build/frontend/models/index.js +1 -0
  77. package/build/frontend/models/infra-provider.schema.js +18 -0
  78. package/build/frontend/models/nodes.schema.js +3 -0
  79. package/package.json +1 -1
@@ -3,6 +3,7 @@ export * from './auth';
3
3
  export * from './config-profiles';
4
4
  export * from './hosts';
5
5
  export * from './hwid';
6
+ export * from './infra-billing';
6
7
  export * from './internal-squads';
7
8
  export * from './keygen';
8
9
  export * from './nodes';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -19,6 +19,7 @@ __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./config-profiles"), exports);
20
20
  __exportStar(require("./hosts"), exports);
21
21
  __exportStar(require("./hwid"), exports);
22
+ __exportStar(require("./infra-billing"), exports);
22
23
  __exportStar(require("./internal-squads"), exports);
23
24
  __exportStar(require("./keygen"), exports);
24
25
  __exportStar(require("./nodes"), exports);
@@ -0,0 +1,16 @@
1
+ export declare const INFRA_BILLING_CONTROLLER: "infra-billing";
2
+ export declare const INFRA_BILLING_ROUTES: {
3
+ readonly GET_PROVIDERS: "providers";
4
+ readonly CREATE_PROVIDER: "providers";
5
+ readonly UPDATE_PROVIDER: "providers";
6
+ readonly DELETE_PROVIDER: (uuid: string) => string;
7
+ readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
8
+ readonly GET_BILLING_NODES: "nodes";
9
+ readonly CREATE_BILLING_NODE: "nodes";
10
+ readonly UPDATE_BILLING_NODE: (uuid: string) => string;
11
+ readonly DELETE_BILLING_NODE: (uuid: string) => string;
12
+ readonly GET_BILLING_HISTORY: "history";
13
+ readonly CREATE_BILLING_HISTORY: "history";
14
+ readonly DELETE_BILLING_HISTORY: (uuid: string) => string;
15
+ };
16
+ //# sourceMappingURL=infra-billing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-billing.d.ts","sourceRoot":"","sources":["../../../../api/controllers/infra-billing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;qCAIL,MAAM;0CACD,MAAM;;;yCAIP,MAAM;yCACN,MAAM;;;4CAIH,MAAM;CAM/B,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INFRA_BILLING_ROUTES = exports.INFRA_BILLING_CONTROLLER = void 0;
4
+ exports.INFRA_BILLING_CONTROLLER = 'infra-billing';
5
+ exports.INFRA_BILLING_ROUTES = {
6
+ GET_PROVIDERS: 'providers', // Get list of all providers // get
7
+ CREATE_PROVIDER: 'providers', // Create new provider // post
8
+ UPDATE_PROVIDER: 'providers', // Update provider by uuid // patch
9
+ DELETE_PROVIDER: (uuid) => `providers/${uuid}`, // Delete provider by uuid // delete
10
+ GET_PROVIDER_BY_UUID: (uuid) => `providers/${uuid}`, // Get provider by uuid // get
11
+ GET_BILLING_NODES: 'nodes', // Get list of all nodes billing // get
12
+ CREATE_BILLING_NODE: 'nodes', // Create new node billing // post
13
+ UPDATE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Update node billing by uuid // patch
14
+ DELETE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Delete node billing by uuid // delete
15
+ GET_BILLING_HISTORY: 'history', // Get list of all nodes billing history // get
16
+ CREATE_BILLING_HISTORY: 'history', // Create new node billing history // post
17
+ DELETE_BILLING_HISTORY: (uuid) => `history/${uuid}`, // Delete node billing history by uuid // delete
18
+ // GET_BILLING_HISTORY_BY_NODE_UUID: (nodeUuid: string) => `history/${nodeUuid}`, // Get list of all nodes billing history by node uuid // get
19
+ // GET_BILLING_HISTORY_BY_PROVIDER_UUID: (providerUuid: string) => `history/${providerUuid}`, // Get list of all nodes billing history by provider uuid // get
20
+ // GET_BILLING_HISTORY_BY_NODE_UUID_AND_PROVIDER_UUID: (nodeUuid: string, providerUuid: string) =>
21
+ // `history/${nodeUuid}/${providerUuid}`, // Get list of all nodes billing history by node uuid and provider uuid // get
22
+ };
@@ -142,5 +142,19 @@ export declare const REST_API: {
142
142
  readonly GET_BY_UUID: (uuid: string) => string;
143
143
  readonly DELETE: (uuid: string) => string;
144
144
  };
145
+ readonly INFRA_BILLING: {
146
+ readonly GET_PROVIDERS: "/api/infra-billing/providers";
147
+ readonly CREATE_PROVIDER: "/api/infra-billing/providers";
148
+ readonly UPDATE_PROVIDER: "/api/infra-billing/providers";
149
+ readonly DELETE_PROVIDER: (uuid: string) => string;
150
+ readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
151
+ readonly GET_BILLING_NODES: "/api/infra-billing/nodes";
152
+ readonly CREATE_BILLING_NODE: "/api/infra-billing/nodes";
153
+ readonly UPDATE_BILLING_NODE: (uuid: string) => string;
154
+ readonly DELETE_BILLING_NODE: (uuid: string) => string;
155
+ readonly GET_BILLING_HISTORY: "/api/infra-billing/history";
156
+ readonly CREATE_BILLING_HISTORY: "/api/infra-billing/history";
157
+ readonly DELETE_BILLING_HISTORY: (uuid: string) => string;
158
+ };
145
159
  };
146
160
  //# sourceMappingURL=routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;gCAYE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;;qCAIX,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;qCAuBD,MAAM;;;;;;;;;mDAYQ,MAAM;;;;;;0CASf,MAAM;;;;;;;qCAUX,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;;CAKnB,CAAC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;gCAYE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;;qCAIX,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;qCAuBD,MAAM;;;;;;;;;mDAYQ,MAAM;;;;;;0CASf,MAAM;;;;;;;qCAUX,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;;;;;;yCAUG,MAAM;8CAED,MAAM;;;6CAKP,MAAM;6CAEN,MAAM;;;gDAKH,MAAM;;CAGnC,CAAC"}
@@ -179,4 +179,18 @@ exports.REST_API = {
179
179
  GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.GET_BY_UUID(uuid)}`,
180
180
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.DELETE(uuid)}`,
181
181
  },
182
+ INFRA_BILLING: {
183
+ GET_PROVIDERS: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDERS}`,
184
+ CREATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_PROVIDER}`,
185
+ UPDATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_PROVIDER}`,
186
+ DELETE_PROVIDER: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_PROVIDER(uuid)}`,
187
+ GET_PROVIDER_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(uuid)}`,
188
+ GET_BILLING_NODES: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_NODES}`,
189
+ CREATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE}`,
190
+ UPDATE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE(uuid)}`,
191
+ DELETE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(uuid)}`,
192
+ GET_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY}`,
193
+ CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
194
+ DELETE_BILLING_HISTORY: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(uuid)}`,
195
+ },
182
196
  };
@@ -13,8 +13,8 @@ var CreateConfigProfileCommand;
13
13
  CreateConfigProfileCommand.RequestSchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(6, 'Name must be at least 6 characters')
17
- .max(16, 'Name must be less than 16 characters')
16
+ .min(2, 'Name must be at least 2 characters')
17
+ .max(20, 'Name must be less than 20 characters')
18
18
  .regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
19
19
  config: zod_1.z.object({}).passthrough(),
20
20
  });
@@ -3,6 +3,7 @@ export * from './auth';
3
3
  export * from './config-profiles';
4
4
  export * from './hosts';
5
5
  export * from './hwid';
6
+ export * from './infra-billing';
6
7
  export * from './internal-squads';
7
8
  export * from './keygen';
8
9
  export * from './nodes';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -19,6 +19,7 @@ __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./config-profiles"), exports);
20
20
  __exportStar(require("./hosts"), exports);
21
21
  __exportStar(require("./hwid"), exports);
22
+ __exportStar(require("./infra-billing"), exports);
22
23
  __exportStar(require("./internal-squads"), exports);
23
24
  __exportStar(require("./keygen"), exports);
24
25
  __exportStar(require("./nodes"), exports);
@@ -0,0 +1,64 @@
1
+ import { z } from 'zod';
2
+ export declare namespace CreateInfraProviderCommand {
3
+ const url: "/api/infra-billing/providers";
4
+ const TSQ_url: "/api/infra-billing/providers";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ name: z.ZodString;
8
+ faviconLink: z.ZodOptional<z.ZodString>;
9
+ loginUrl: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name: string;
12
+ faviconLink?: string | undefined;
13
+ loginUrl?: string | undefined;
14
+ }, {
15
+ name: string;
16
+ faviconLink?: string | undefined;
17
+ loginUrl?: string | undefined;
18
+ }>;
19
+ type Request = z.infer<typeof RequestSchema>;
20
+ const ResponseSchema: z.ZodObject<{
21
+ response: z.ZodObject<{
22
+ uuid: z.ZodString;
23
+ name: z.ZodString;
24
+ faviconLink: z.ZodNullable<z.ZodString>;
25
+ loginUrl: z.ZodNullable<z.ZodString>;
26
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
27
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ uuid: string;
30
+ createdAt: Date;
31
+ updatedAt: Date;
32
+ name: string;
33
+ faviconLink: string | null;
34
+ loginUrl: string | null;
35
+ }, {
36
+ uuid: string;
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ name: string;
40
+ faviconLink: string | null;
41
+ loginUrl: string | null;
42
+ }>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ response: {
45
+ uuid: string;
46
+ createdAt: Date;
47
+ updatedAt: Date;
48
+ name: string;
49
+ faviconLink: string | null;
50
+ loginUrl: string | null;
51
+ };
52
+ }, {
53
+ response: {
54
+ uuid: string;
55
+ createdAt: string;
56
+ updatedAt: string;
57
+ name: string;
58
+ faviconLink: string | null;
59
+ loginUrl: string | null;
60
+ };
61
+ }>;
62
+ type Response = z.infer<typeof ResponseSchema>;
63
+ }
64
+ //# sourceMappingURL=create-infra-provider.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-infra-provider.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-infra-provider.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAOxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateInfraProviderCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var CreateInfraProviderCommand;
9
+ (function (CreateInfraProviderCommand) {
10
+ CreateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_PROVIDER;
11
+ CreateInfraProviderCommand.TSQ_url = CreateInfraProviderCommand.url;
12
+ CreateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_PROVIDER, 'post', 'Create infra provider');
13
+ CreateInfraProviderCommand.RequestSchema = zod_1.z.object({
14
+ name: zod_1.z
15
+ .string()
16
+ .min(2, 'Name must be at least 2 characters')
17
+ .max(30, 'Name must be less than 255 characters'),
18
+ faviconLink: zod_1.z.string().url().optional(),
19
+ loginUrl: zod_1.z.string().url().optional(),
20
+ });
21
+ CreateInfraProviderCommand.ResponseSchema = zod_1.z.object({
22
+ response: models_1.InfraProviderSchema,
23
+ });
24
+ })(CreateInfraProviderCommand || (exports.CreateInfraProviderCommand = CreateInfraProviderCommand = {}));
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteInfraProviderByUuidCommand {
3
+ const url: string;
4
+ const TSQ_url: string;
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ uuid: string;
10
+ }, {
11
+ uuid: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ isDeleted: z.ZodBoolean;
17
+ }, "strip", z.ZodTypeAny, {
18
+ isDeleted: boolean;
19
+ }, {
20
+ isDeleted: boolean;
21
+ }>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ response: {
24
+ isDeleted: boolean;
25
+ };
26
+ }, {
27
+ response: {
28
+ isDeleted: boolean;
29
+ };
30
+ }>;
31
+ type Response = z.infer<typeof ResponseSchema>;
32
+ }
33
+ //# sourceMappingURL=delete-infra-provider-by-uuid.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-infra-provider-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/delete-infra-provider-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,QAAkD,CAAC;IAC5D,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteInfraProviderByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ var DeleteInfraProviderByUuidCommand;
8
+ (function (DeleteInfraProviderByUuidCommand) {
9
+ DeleteInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_PROVIDER(':uuid');
10
+ DeleteInfraProviderByUuidCommand.TSQ_url = DeleteInfraProviderByUuidCommand.url;
11
+ DeleteInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_PROVIDER(':uuid'), 'delete', 'Delete infra provider by uuid');
12
+ DeleteInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
13
+ uuid: zod_1.z.string().uuid(),
14
+ });
15
+ DeleteInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
16
+ response: zod_1.z.object({
17
+ isDeleted: zod_1.z.boolean(),
18
+ }),
19
+ });
20
+ })(DeleteInfraProviderByUuidCommand || (exports.DeleteInfraProviderByUuidCommand = DeleteInfraProviderByUuidCommand = {}));
@@ -0,0 +1,58 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetInfraProviderByUuidCommand {
3
+ const url: string;
4
+ const TSQ_url: string;
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ uuid: string;
10
+ }, {
11
+ uuid: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ uuid: z.ZodString;
17
+ name: z.ZodString;
18
+ faviconLink: z.ZodNullable<z.ZodString>;
19
+ loginUrl: z.ZodNullable<z.ZodString>;
20
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
21
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ uuid: string;
24
+ createdAt: Date;
25
+ updatedAt: Date;
26
+ name: string;
27
+ faviconLink: string | null;
28
+ loginUrl: string | null;
29
+ }, {
30
+ uuid: string;
31
+ createdAt: string;
32
+ updatedAt: string;
33
+ name: string;
34
+ faviconLink: string | null;
35
+ loginUrl: string | null;
36
+ }>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ response: {
39
+ uuid: string;
40
+ createdAt: Date;
41
+ updatedAt: Date;
42
+ name: string;
43
+ faviconLink: string | null;
44
+ loginUrl: string | null;
45
+ };
46
+ }, {
47
+ response: {
48
+ uuid: string;
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ name: string;
52
+ faviconLink: string | null;
53
+ loginUrl: string | null;
54
+ };
55
+ }>;
56
+ type Response = z.infer<typeof ResponseSchema>;
57
+ }
58
+ //# sourceMappingURL=get-infra-provider-by-uuid.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-infra-provider-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-infra-provider-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,QAAuD,CAAC;IACjE,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetInfraProviderByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var GetInfraProviderByUuidCommand;
9
+ (function (GetInfraProviderByUuidCommand) {
10
+ GetInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDER_BY_UUID(':uuid');
11
+ GetInfraProviderByUuidCommand.TSQ_url = GetInfraProviderByUuidCommand.url;
12
+ GetInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(':uuid'), 'get', 'Get infra provider by uuid');
13
+ GetInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ });
16
+ GetInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
17
+ response: models_1.InfraProviderSchema,
18
+ });
19
+ })(GetInfraProviderByUuidCommand || (exports.GetInfraProviderByUuidCommand = GetInfraProviderByUuidCommand = {}));
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetInfraProvidersCommand {
3
+ const url: "/api/infra-billing/providers";
4
+ const TSQ_url: "/api/infra-billing/providers";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const ResponseSchema: z.ZodObject<{
7
+ response: z.ZodObject<{
8
+ total: z.ZodNumber;
9
+ providers: z.ZodArray<z.ZodObject<{
10
+ uuid: z.ZodString;
11
+ name: z.ZodString;
12
+ faviconLink: z.ZodNullable<z.ZodString>;
13
+ loginUrl: z.ZodNullable<z.ZodString>;
14
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
15
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ uuid: string;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ name: string;
21
+ faviconLink: string | null;
22
+ loginUrl: string | null;
23
+ }, {
24
+ uuid: string;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ name: string;
28
+ faviconLink: string | null;
29
+ loginUrl: string | null;
30
+ }>, "many">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ providers: {
33
+ uuid: string;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ name: string;
37
+ faviconLink: string | null;
38
+ loginUrl: string | null;
39
+ }[];
40
+ total: number;
41
+ }, {
42
+ providers: {
43
+ uuid: string;
44
+ createdAt: string;
45
+ updatedAt: string;
46
+ name: string;
47
+ faviconLink: string | null;
48
+ loginUrl: string | null;
49
+ }[];
50
+ total: number;
51
+ }>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ response: {
54
+ providers: {
55
+ uuid: string;
56
+ createdAt: Date;
57
+ updatedAt: Date;
58
+ name: string;
59
+ faviconLink: string | null;
60
+ loginUrl: string | null;
61
+ }[];
62
+ total: number;
63
+ };
64
+ }, {
65
+ response: {
66
+ providers: {
67
+ uuid: string;
68
+ createdAt: string;
69
+ updatedAt: string;
70
+ name: string;
71
+ faviconLink: string | null;
72
+ loginUrl: string | null;
73
+ }[];
74
+ total: number;
75
+ };
76
+ }>;
77
+ type Response = z.infer<typeof ResponseSchema>;
78
+ }
79
+ //# sourceMappingURL=get-infra-providers.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-infra-providers.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-infra-providers.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,gCAAuC,CAAC;IACjD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetInfraProvidersCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var GetInfraProvidersCommand;
9
+ (function (GetInfraProvidersCommand) {
10
+ GetInfraProvidersCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDERS;
11
+ GetInfraProvidersCommand.TSQ_url = GetInfraProvidersCommand.url;
12
+ GetInfraProvidersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDERS, 'get', 'Get all infra providers');
13
+ GetInfraProvidersCommand.ResponseSchema = zod_1.z.object({
14
+ response: zod_1.z.object({
15
+ total: zod_1.z.number(),
16
+ providers: zod_1.z.array(models_1.InfraProviderSchema),
17
+ }),
18
+ });
19
+ })(GetInfraProvidersCommand || (exports.GetInfraProvidersCommand = GetInfraProvidersCommand = {}));
@@ -0,0 +1,6 @@
1
+ export * from './create-infra-provider.command';
2
+ export * from './delete-infra-provider-by-uuid.command';
3
+ export * from './get-infra-provider-by-uuid.command';
4
+ export * from './get-infra-providers.command';
5
+ export * from './update-infra-provider.command';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-infra-provider.command"), exports);
18
+ __exportStar(require("./delete-infra-provider-by-uuid.command"), exports);
19
+ __exportStar(require("./get-infra-provider-by-uuid.command"), exports);
20
+ __exportStar(require("./get-infra-providers.command"), exports);
21
+ __exportStar(require("./update-infra-provider.command"), exports);
@@ -0,0 +1,67 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateInfraProviderCommand {
3
+ const url: "/api/infra-billing/providers";
4
+ const TSQ_url: "/api/infra-billing/providers";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ name: z.ZodOptional<z.ZodString>;
9
+ faviconLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ loginUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ uuid: string;
13
+ name?: string | undefined;
14
+ faviconLink?: string | null | undefined;
15
+ loginUrl?: string | null | undefined;
16
+ }, {
17
+ uuid: string;
18
+ name?: string | undefined;
19
+ faviconLink?: string | null | undefined;
20
+ loginUrl?: string | null | undefined;
21
+ }>;
22
+ type Request = z.infer<typeof RequestSchema>;
23
+ const ResponseSchema: z.ZodObject<{
24
+ response: z.ZodObject<{
25
+ uuid: z.ZodString;
26
+ name: z.ZodString;
27
+ faviconLink: z.ZodNullable<z.ZodString>;
28
+ loginUrl: z.ZodNullable<z.ZodString>;
29
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
30
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ uuid: string;
33
+ createdAt: Date;
34
+ updatedAt: Date;
35
+ name: string;
36
+ faviconLink: string | null;
37
+ loginUrl: string | null;
38
+ }, {
39
+ uuid: string;
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ name: string;
43
+ faviconLink: string | null;
44
+ loginUrl: string | null;
45
+ }>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ response: {
48
+ uuid: string;
49
+ createdAt: Date;
50
+ updatedAt: Date;
51
+ name: string;
52
+ faviconLink: string | null;
53
+ loginUrl: string | null;
54
+ };
55
+ }, {
56
+ response: {
57
+ uuid: string;
58
+ createdAt: string;
59
+ updatedAt: string;
60
+ name: string;
61
+ faviconLink: string | null;
62
+ loginUrl: string | null;
63
+ };
64
+ }>;
65
+ type Response = z.infer<typeof ResponseSchema>;
66
+ }
67
+ //# sourceMappingURL=update-infra-provider.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-infra-provider.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/update-infra-provider.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;MASxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateInfraProviderCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var UpdateInfraProviderCommand;
9
+ (function (UpdateInfraProviderCommand) {
10
+ UpdateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_PROVIDER;
11
+ UpdateInfraProviderCommand.TSQ_url = UpdateInfraProviderCommand.url;
12
+ UpdateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_PROVIDER, 'patch', 'Update infra provider');
13
+ UpdateInfraProviderCommand.RequestSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ name: zod_1.z
16
+ .string()
17
+ .min(2, 'Name must be at least 2 characters')
18
+ .max(30, 'Name must be less than 255 characters')
19
+ .optional(),
20
+ faviconLink: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
21
+ loginUrl: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
22
+ });
23
+ UpdateInfraProviderCommand.ResponseSchema = zod_1.z.object({
24
+ response: models_1.InfraProviderSchema,
25
+ });
26
+ })(UpdateInfraProviderCommand || (exports.UpdateInfraProviderCommand = UpdateInfraProviderCommand = {}));
@@ -13,8 +13,8 @@ var CreateInternalSquadCommand;
13
13
  CreateInternalSquadCommand.RequestSchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(6, 'Name must be at least 6 characters')
17
- .max(16, 'Name must be less than 16 characters')
16
+ .min(2, 'Name must be at least 2 characters')
17
+ .max(20, 'Name must be less than 20 characters')
18
18
  .regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
19
19
  inbounds: zod_1.z.array(zod_1.z.string().uuid()),
20
20
  });