@squidcloud/local-backend 1.0.62 → 1.0.64

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 (185) hide show
  1. package/dist/common/src/ai-assistant.context.d.ts +13 -13
  2. package/dist/common/src/ai-assistant.context.js +19 -19
  3. package/dist/common/src/ai-assistant.schemas.d.ts +243 -243
  4. package/dist/common/src/ai-assistant.schemas.js +210 -210
  5. package/dist/common/src/ai-assistant.types.d.ts +90 -90
  6. package/dist/common/src/ai-assistant.types.js +11 -11
  7. package/dist/common/src/api-call.context.d.ts +13 -13
  8. package/dist/common/src/api-call.context.js +16 -16
  9. package/dist/common/src/api.types.d.ts +23 -23
  10. package/dist/common/src/api.types.js +2 -2
  11. package/dist/common/src/application.schemas.d.ts +1312 -1312
  12. package/dist/common/src/application.schemas.js +860 -860
  13. package/dist/common/src/application.types.d.ts +186 -186
  14. package/dist/common/src/application.types.js +89 -89
  15. package/dist/common/src/backend-function.schemas.d.ts +3 -3
  16. package/dist/common/src/backend-function.schemas.js +12 -12
  17. package/dist/common/src/backend-function.types.d.ts +6 -6
  18. package/dist/common/src/backend-function.types.js +2 -2
  19. package/dist/common/src/backend-run.types.d.ts +54 -54
  20. package/dist/common/src/backend-run.types.js +96 -96
  21. package/dist/common/src/bundle-api.types.d.ts +63 -63
  22. package/dist/common/src/bundle-api.types.js +2 -2
  23. package/dist/common/src/bundle-data.types.d.ts +59 -59
  24. package/dist/common/src/bundle-data.types.js +2 -2
  25. package/dist/common/src/communication.types.d.ts +18 -18
  26. package/dist/common/src/communication.types.js +40 -40
  27. package/dist/common/src/context.types.d.ts +24 -24
  28. package/dist/common/src/context.types.js +2 -2
  29. package/dist/common/src/distributed-lock.context.d.ts +5 -5
  30. package/dist/common/src/distributed-lock.context.js +10 -10
  31. package/dist/common/src/document.types.d.ts +32 -32
  32. package/dist/common/src/document.types.js +50 -50
  33. package/dist/common/src/graphql.context.d.ts +14 -14
  34. package/dist/common/src/graphql.context.js +12 -12
  35. package/dist/common/src/graphql.types.d.ts +11 -11
  36. package/dist/common/src/graphql.types.js +34 -34
  37. package/dist/common/src/heartbeat.types.d.ts +4 -4
  38. package/dist/common/src/heartbeat.types.js +16 -16
  39. package/dist/common/src/http-status.enum.d.ts +50 -50
  40. package/dist/common/src/http-status.enum.js +54 -54
  41. package/dist/common/src/index.d.ts +55 -53
  42. package/dist/common/src/index.js +71 -69
  43. package/dist/common/src/index.js.map +1 -1
  44. package/dist/common/src/integrations/ai_assistant.types.d.ts +24 -24
  45. package/dist/common/src/integrations/ai_assistant.types.js +2 -2
  46. package/dist/common/src/integrations/api.types.d.ts +80 -80
  47. package/dist/common/src/integrations/api.types.js +2 -2
  48. package/dist/common/src/integrations/auth.types.d.ts +39 -39
  49. package/dist/common/src/integrations/auth.types.js +2 -2
  50. package/dist/common/src/integrations/database.types.d.ts +231 -231
  51. package/dist/common/src/integrations/database.types.js +2 -2
  52. package/dist/common/src/integrations/index.d.ts +124 -124
  53. package/dist/common/src/integrations/index.js +111 -111
  54. package/dist/common/src/integrations/observability.types.d.ts +23 -23
  55. package/dist/common/src/integrations/observability.types.js +23 -23
  56. package/dist/common/src/logger.types.d.ts +21 -21
  57. package/dist/common/src/logger.types.js +11 -11
  58. package/dist/common/src/metrics.types.d.ts +73 -73
  59. package/dist/common/src/metrics.types.js +11 -11
  60. package/dist/common/src/mutation.context.d.ts +13 -13
  61. package/dist/common/src/mutation.context.js +26 -26
  62. package/dist/common/src/mutation.schemas.d.ts +5 -5
  63. package/dist/common/src/mutation.schemas.js +114 -114
  64. package/dist/common/src/mutation.types.d.ts +63 -63
  65. package/dist/common/src/mutation.types.js +142 -142
  66. package/dist/common/src/named-query.context.d.ts +4 -4
  67. package/dist/common/src/named-query.context.js +9 -9
  68. package/dist/common/src/named-query.schemas.d.ts +3 -3
  69. package/dist/common/src/named-query.schemas.js +13 -13
  70. package/dist/common/src/named-query.types.d.ts +8 -8
  71. package/dist/common/src/named-query.types.js +2 -2
  72. package/dist/common/src/query/base-query-builder.d.ts +37 -37
  73. package/dist/common/src/query/base-query-builder.js +36 -36
  74. package/dist/common/src/query/index.d.ts +4 -4
  75. package/dist/common/src/query/index.js +20 -20
  76. package/dist/common/src/query/pagination.d.ts +42 -42
  77. package/dist/common/src/query/pagination.js +164 -164
  78. package/dist/common/src/query/query-context.d.ts +47 -47
  79. package/dist/common/src/query/query-context.js +159 -159
  80. package/dist/common/src/query/serialized-query.types.d.ts +24 -24
  81. package/dist/common/src/query/serialized-query.types.js +2 -2
  82. package/dist/common/src/query.types.d.ts +86 -86
  83. package/dist/common/src/query.types.js +153 -153
  84. package/dist/common/src/regions.d.ts +21 -21
  85. package/dist/common/src/regions.js +46 -46
  86. package/dist/common/src/schema/schema.types.d.ts +30 -30
  87. package/dist/common/src/schema/schema.types.js +172 -172
  88. package/dist/common/src/secret.schemas.d.ts +6 -6
  89. package/dist/common/src/secret.schemas.js +32 -32
  90. package/dist/common/src/secret.types.d.ts +49 -49
  91. package/dist/common/src/secret.types.js +5 -5
  92. package/dist/common/src/security.types.d.ts +3 -3
  93. package/dist/common/src/security.types.js +2 -2
  94. package/dist/common/src/socket.schemas.d.ts +3 -3
  95. package/dist/common/src/socket.schemas.js +58 -58
  96. package/dist/common/src/socket.types.d.ts +112 -108
  97. package/dist/common/src/socket.types.js +2 -2
  98. package/dist/common/src/time-units.d.ts +5 -5
  99. package/dist/common/src/time-units.js +8 -8
  100. package/dist/common/src/trigger.types.d.ts +15 -15
  101. package/dist/common/src/trigger.types.js +2 -2
  102. package/dist/common/src/types.d.ts +21 -21
  103. package/dist/common/src/types.js +2 -2
  104. package/dist/common/src/utils/array.d.ts +8 -8
  105. package/dist/common/src/utils/array.js +54 -54
  106. package/dist/common/src/utils/assert.d.ts +8 -8
  107. package/dist/common/src/utils/assert.js +49 -49
  108. package/dist/common/src/utils/error.d.ts +4 -4
  109. package/dist/common/src/utils/error.js +10 -10
  110. package/dist/common/src/utils/global.utils.d.ts +10 -0
  111. package/dist/common/src/utils/global.utils.js +47 -0
  112. package/dist/common/src/utils/global.utils.js.map +1 -0
  113. package/dist/common/src/utils/http.d.ts +2 -2
  114. package/dist/common/src/utils/http.js +40 -40
  115. package/dist/common/src/utils/http.js.map +1 -1
  116. package/dist/common/src/utils/id.d.ts +2 -2
  117. package/dist/common/src/utils/id.js +21 -21
  118. package/dist/common/src/utils/lock.manager.d.ts +9 -9
  119. package/dist/common/src/utils/lock.manager.js +39 -39
  120. package/dist/common/src/utils/nullish.d.ts +2 -2
  121. package/dist/common/src/utils/nullish.js +11 -11
  122. package/dist/common/src/utils/object.d.ts +5 -5
  123. package/dist/common/src/utils/object.js +75 -75
  124. package/dist/common/src/utils/serialization.d.ts +6 -6
  125. package/dist/common/src/utils/serialization.js +77 -77
  126. package/dist/common/src/utils/transforms.d.ts +18 -18
  127. package/dist/common/src/utils/transforms.js +92 -92
  128. package/dist/common/src/utils/url.d.ts +1 -1
  129. package/dist/common/src/utils/url.js +15 -15
  130. package/dist/common/src/utils/validation.d.ts +17 -17
  131. package/dist/common/src/utils/validation.js +209 -209
  132. package/dist/common/src/webhook-response.d.ts +6 -6
  133. package/dist/common/src/webhook-response.js +2 -2
  134. package/dist/common/src/websocket.impl.d.ts +21 -0
  135. package/dist/common/src/websocket.impl.js +75 -0
  136. package/dist/common/src/websocket.impl.js.map +1 -0
  137. package/dist/internal-common/src/async-queue.d.ts +4 -4
  138. package/dist/internal-common/src/async-queue.js +17 -17
  139. package/dist/internal-common/src/code-executor.types.d.ts +13 -13
  140. package/dist/internal-common/src/code-executor.types.js +2 -2
  141. package/dist/internal-common/src/dao.types.d.ts +46 -46
  142. package/dist/internal-common/src/dao.types.js +2 -2
  143. package/dist/internal-common/src/environment/environment.types.d.ts +74 -74
  144. package/dist/internal-common/src/environment/environment.types.js +2 -2
  145. package/dist/internal-common/src/environment/index.d.ts +6 -6
  146. package/dist/internal-common/src/environment/index.js +27 -27
  147. package/dist/internal-common/src/environment/local.environment.d.ts +2 -2
  148. package/dist/internal-common/src/environment/local.environment.js +62 -62
  149. package/dist/internal-common/src/filters/custom-exception.filter.d.ts +6 -6
  150. package/dist/internal-common/src/filters/custom-exception.filter.js +44 -44
  151. package/dist/internal-common/src/index.d.ts +14 -14
  152. package/dist/internal-common/src/index.js +32 -32
  153. package/dist/internal-common/src/interceptors/body.interceptor.d.ts +5 -5
  154. package/dist/internal-common/src/interceptors/body.interceptor.js +24 -24
  155. package/dist/internal-common/src/kafka/kafka.manager.d.ts +22 -22
  156. package/dist/internal-common/src/kafka/kafka.manager.js +129 -129
  157. package/dist/internal-common/src/kafka/kafka.types.d.ts +17 -17
  158. package/dist/internal-common/src/kafka/kafka.types.js +2 -2
  159. package/dist/internal-common/src/kafka-observability-publisher.d.ts +11 -11
  160. package/dist/internal-common/src/kafka-observability-publisher.js +20 -20
  161. package/dist/internal-common/src/local-dev.types.d.ts +35 -31
  162. package/dist/internal-common/src/local-dev.types.js +2 -2
  163. package/dist/internal-common/src/observability-publisher.d.ts +9 -9
  164. package/dist/internal-common/src/observability-publisher.js +58 -58
  165. package/dist/internal-common/src/observability.types.d.ts +17 -17
  166. package/dist/internal-common/src/observability.types.js +2 -2
  167. package/dist/internal-common/src/shutdown.manager.d.ts +20 -20
  168. package/dist/internal-common/src/shutdown.manager.js +75 -75
  169. package/dist/internal-common/src/utils.d.ts +5 -5
  170. package/dist/internal-common/src/utils.js +29 -29
  171. package/dist/local-backend/src/index.d.ts +4 -4
  172. package/dist/local-backend/src/index.js +20 -20
  173. package/dist/local-backend/src/local-backend-socket.service.d.ts +19 -18
  174. package/dist/local-backend/src/local-backend-socket.service.js +110 -107
  175. package/dist/local-backend/src/local-backend-socket.service.js.map +1 -1
  176. package/dist/local-backend/src/local-backend.app.d.ts +2 -2
  177. package/dist/local-backend/src/local-backend.app.js +19 -19
  178. package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
  179. package/dist/local-backend/src/local-backend.controller.js +49 -49
  180. package/dist/local-backend/src/local-backend.module.d.ts +8 -8
  181. package/dist/local-backend/src/local-backend.module.js +53 -53
  182. package/dist/local-backend/src/local-backend.service.d.ts +15 -15
  183. package/dist/local-backend/src/local-backend.service.js +165 -165
  184. package/dist/tsconfig.build.tsbuildinfo +1 -1
  185. package/package.json +2 -2
@@ -1,186 +1,186 @@
1
- import { RunPermissions } from './backend-run.types';
2
- import { ApplicationBundleData, ServiceFunctionName } from './bundle-data.types';
3
- import { AppId, EnvironmentId, IntegrationId } from './communication.types';
4
- import { CollectionName } from './document.types';
5
- import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationType, IntegrationTypeWithConfig } from './integrations';
6
- export type WebhookId = string;
7
- export type QueryName = string;
8
- export type TriggerId = string;
9
- export type SchedulerId = string;
10
- export type CronExpressionString = `${string} ${string} ${string} ${string} ${string}` | `${string} ${string} ${string} ${string}`;
11
- export declare enum CronExpression {
12
- EVERY_SECOND = "* * * * * *",
13
- EVERY_5_SECONDS = "*/5 * * * * *",
14
- EVERY_10_SECONDS = "*/10 * * * * *",
15
- EVERY_30_SECONDS = "*/30 * * * * *",
16
- EVERY_MINUTE = "*/1 * * * *",
17
- EVERY_5_MINUTES = "0 */5 * * * *",
18
- EVERY_10_MINUTES = "0 */10 * * * *",
19
- EVERY_30_MINUTES = "0 */30 * * * *",
20
- EVERY_HOUR = "0 0-23/1 * * *",
21
- EVERY_2_HOURS = "0 0-23/2 * * *",
22
- EVERY_3_HOURS = "0 0-23/3 * * *",
23
- EVERY_4_HOURS = "0 0-23/4 * * *",
24
- EVERY_5_HOURS = "0 0-23/5 * * *",
25
- EVERY_6_HOURS = "0 0-23/6 * * *",
26
- EVERY_7_HOURS = "0 0-23/7 * * *",
27
- EVERY_8_HOURS = "0 0-23/8 * * *",
28
- EVERY_9_HOURS = "0 0-23/9 * * *",
29
- EVERY_10_HOURS = "0 0-23/10 * * *",
30
- EVERY_11_HOURS = "0 0-23/11 * * *",
31
- EVERY_12_HOURS = "0 0-23/12 * * *",
32
- EVERY_DAY_AT_1AM = "0 01 * * *",
33
- EVERY_DAY_AT_2AM = "0 02 * * *",
34
- EVERY_DAY_AT_3AM = "0 03 * * *",
35
- EVERY_DAY_AT_4AM = "0 04 * * *",
36
- EVERY_DAY_AT_5AM = "0 05 * * *",
37
- EVERY_DAY_AT_6AM = "0 06 * * *",
38
- EVERY_DAY_AT_7AM = "0 07 * * *",
39
- EVERY_DAY_AT_8AM = "0 08 * * *",
40
- EVERY_DAY_AT_9AM = "0 09 * * *",
41
- EVERY_DAY_AT_10AM = "0 10 * * *",
42
- EVERY_DAY_AT_11AM = "0 11 * * *",
43
- EVERY_DAY_AT_NOON = "0 12 * * *",
44
- EVERY_DAY_AT_1PM = "0 13 * * *",
45
- EVERY_DAY_AT_2PM = "0 14 * * *",
46
- EVERY_DAY_AT_3PM = "0 15 * * *",
47
- EVERY_DAY_AT_4PM = "0 16 * * *",
48
- EVERY_DAY_AT_5PM = "0 17 * * *",
49
- EVERY_DAY_AT_6PM = "0 18 * * *",
50
- EVERY_DAY_AT_7PM = "0 19 * * *",
51
- EVERY_DAY_AT_8PM = "0 20 * * *",
52
- EVERY_DAY_AT_9PM = "0 21 * * *",
53
- EVERY_DAY_AT_10PM = "0 22 * * *",
54
- EVERY_DAY_AT_11PM = "0 23 * * *",
55
- EVERY_DAY_AT_MIDNIGHT = "0 0 * * *",
56
- EVERY_WEEK = "0 0 * * 0",
57
- EVERY_WEEKDAY = "0 0 * * 1-5",
58
- EVERY_WEEKEND = "0 0 * * 6,0",
59
- EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT = "0 0 1 * *",
60
- EVERY_1ST_DAY_OF_MONTH_AT_NOON = "0 12 1 * *",
61
- EVERY_2ND_HOUR = "0 */2 * * *",
62
- EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM = "0 1-23/2 * * *",
63
- EVERY_2ND_MONTH = "0 0 1 */2 *",
64
- EVERY_QUARTER = "0 0 1 */3 *",
65
- EVERY_6_MONTHS = "0 0 1 */6 *",
66
- EVERY_YEAR = "0 0 1 0 *",
67
- EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM = "0 */30 9-17 * * *",
68
- EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM = "0 */30 9-18 * * *",
69
- EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM = "0 */30 10-19 * * *",
70
- MONDAY_TO_FRIDAY_AT_1AM = "0 0 01 * * 1-5",
71
- MONDAY_TO_FRIDAY_AT_2AM = "0 0 02 * * 1-5",
72
- MONDAY_TO_FRIDAY_AT_3AM = "0 0 03 * * 1-5",
73
- MONDAY_TO_FRIDAY_AT_4AM = "0 0 04 * * 1-5",
74
- MONDAY_TO_FRIDAY_AT_5AM = "0 0 05 * * 1-5",
75
- MONDAY_TO_FRIDAY_AT_6AM = "0 0 06 * * 1-5",
76
- MONDAY_TO_FRIDAY_AT_7AM = "0 0 07 * * 1-5",
77
- MONDAY_TO_FRIDAY_AT_8AM = "0 0 08 * * 1-5",
78
- MONDAY_TO_FRIDAY_AT_9AM = "0 0 09 * * 1-5",
79
- MONDAY_TO_FRIDAY_AT_09_30AM = "0 30 09 * * 1-5",
80
- MONDAY_TO_FRIDAY_AT_10AM = "0 0 10 * * 1-5",
81
- MONDAY_TO_FRIDAY_AT_11AM = "0 0 11 * * 1-5",
82
- MONDAY_TO_FRIDAY_AT_11_30AM = "0 30 11 * * 1-5",
83
- MONDAY_TO_FRIDAY_AT_12PM = "0 0 12 * * 1-5",
84
- MONDAY_TO_FRIDAY_AT_1PM = "0 0 13 * * 1-5",
85
- MONDAY_TO_FRIDAY_AT_2PM = "0 0 14 * * 1-5",
86
- MONDAY_TO_FRIDAY_AT_3PM = "0 0 15 * * 1-5",
87
- MONDAY_TO_FRIDAY_AT_4PM = "0 0 16 * * 1-5",
88
- MONDAY_TO_FRIDAY_AT_5PM = "0 0 17 * * 1-5",
89
- MONDAY_TO_FRIDAY_AT_6PM = "0 0 18 * * 1-5",
90
- MONDAY_TO_FRIDAY_AT_7PM = "0 0 19 * * 1-5",
91
- MONDAY_TO_FRIDAY_AT_8PM = "0 0 20 * * 1-5",
92
- MONDAY_TO_FRIDAY_AT_9PM = "0 0 21 * * 1-5",
93
- MONDAY_TO_FRIDAY_AT_10PM = "0 0 22 * * 1-5",
94
- MONDAY_TO_FRIDAY_AT_11PM = "0 0 23 * * 1-5"
95
- }
96
- export type OpenIdProviderType = 'auth0';
97
- export type CodeUrl = string;
98
- export interface TriggerConfig {
99
- integrationId: IntegrationId;
100
- collectionName: CollectionName;
101
- functionName: ServiceFunctionName;
102
- }
103
- export interface SchedulerConfig {
104
- functionName: ServiceFunctionName;
105
- cronExpression: string;
106
- exclusive: boolean;
107
- }
108
- export interface WebhookConfig {
109
- functionName: ServiceFunctionName;
110
- }
111
- export interface OpenIdProvider {
112
- providerType: OpenIdProviderType;
113
- clientId: string;
114
- domain: string;
115
- }
116
- export interface Application {
117
- appId: AppId;
118
- createdAt: Date;
119
- updatedAt: Date;
120
- allowedHosts: string[];
121
- openIdProvider?: OpenIdProvider;
122
- integrations: Record<IntegrationId, IntegrationConfig>;
123
- codeUrl?: string;
124
- bundleMetadata?: ApplicationBundleData;
125
- }
126
- export interface Schema<T extends IntegrationSchema = any> {
127
- appId: AppId;
128
- integrationId: IntegrationId;
129
- schema: T;
130
- createdAt: Date;
131
- updatedAt: Date;
132
- }
133
- export interface ApplicationInitDetails {
134
- codeUrl: string;
135
- codeUrlId: string;
136
- permissions: RunPermissions;
137
- }
138
- export interface UpdateOpenIdProviderRequest {
139
- openIdProvider: OpenIdProvider;
140
- }
141
- export interface CreateApplicationResponse {
142
- appId: AppId;
143
- }
144
- export interface DeleteIntegrationRequest {
145
- integrationId: IntegrationId;
146
- }
147
- export interface UpdateAllowedHostsRequest {
148
- allowedHosts: string[];
149
- }
150
- export interface CreateEnvironmentRequest {
151
- sourceAppId: AppId;
152
- environmentId: EnvironmentId;
153
- }
154
- interface BaseUpsertIntegrationRequest<T extends IntegrationTypeWithConfig, C extends IntegrationConfig> {
155
- id: IntegrationId;
156
- type: T;
157
- config: Partial<C>;
158
- }
159
- type ConfigurationTypes = {
160
- [K in IntegrationTypeWithConfig]: IntegrationConfigTypes[K];
161
- };
162
- type UpsertIntegrationRequests = {
163
- [K in IntegrationTypeWithConfig]: BaseUpsertIntegrationRequest<K, ConfigurationTypes[K]>;
164
- };
165
- export type UpsertIntegrationRequest = UpsertDataIntegrationRequest | UpsertGraphQLIntegrationRequest | UpsertApiIntegrationRequest | UpsertAiAssistantIntegrationRequest | UpsertAuthIntegrationRequest;
166
- export type UpsertDataIntegrationRequest = UpsertIntegrationRequests[DatabaseIntegrationType];
167
- export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests[IntegrationType.graphql];
168
- export type UpsertApiIntegrationRequest = UpsertIntegrationRequests[IntegrationType.api];
169
- export type UpsertAiAssistantIntegrationRequest = UpsertIntegrationRequests[IntegrationType.ai_assistant];
170
- export type UpsertAuthIntegrationRequest = UpsertIntegrationRequests[AuthIntegrationType];
171
- interface BaseUpsertIntegrationSchemaRequest<T extends IntegrationType, S extends IntegrationSchema> {
172
- id: IntegrationId;
173
- type: T;
174
- schema: S;
175
- }
176
- type SchemaTypes = {
177
- [K in IntegrationSchemaKeys]: IntegrationSchemaTypes[K];
178
- };
179
- type UpsertIntegrationSchemaRequests = {
180
- [K in IntegrationSchemaKeys]: BaseUpsertIntegrationSchemaRequest<K, SchemaTypes[K]>;
181
- };
182
- export type UpsertIntegrationSchemaRequest = UpsertDataIntegrationSchemaRequest | UpsertGraphQLIntegrationSchemaRequest | UpsertApiIntegrationSchemaRequest;
183
- export type UpsertDataIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[DatabaseIntegrationType];
184
- export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.graphql];
185
- export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.api];
186
- export {};
1
+ import { RunPermissions } from './backend-run.types';
2
+ import { ApplicationBundleData, ServiceFunctionName } from './bundle-data.types';
3
+ import { AppId, EnvironmentId, IntegrationId } from './communication.types';
4
+ import { CollectionName } from './document.types';
5
+ import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationType, IntegrationTypeWithConfig } from './integrations';
6
+ export type WebhookId = string;
7
+ export type QueryName = string;
8
+ export type TriggerId = string;
9
+ export type SchedulerId = string;
10
+ export type CronExpressionString = `${string} ${string} ${string} ${string} ${string}` | `${string} ${string} ${string} ${string}`;
11
+ export declare enum CronExpression {
12
+ EVERY_SECOND = "* * * * * *",
13
+ EVERY_5_SECONDS = "*/5 * * * * *",
14
+ EVERY_10_SECONDS = "*/10 * * * * *",
15
+ EVERY_30_SECONDS = "*/30 * * * * *",
16
+ EVERY_MINUTE = "*/1 * * * *",
17
+ EVERY_5_MINUTES = "0 */5 * * * *",
18
+ EVERY_10_MINUTES = "0 */10 * * * *",
19
+ EVERY_30_MINUTES = "0 */30 * * * *",
20
+ EVERY_HOUR = "0 0-23/1 * * *",
21
+ EVERY_2_HOURS = "0 0-23/2 * * *",
22
+ EVERY_3_HOURS = "0 0-23/3 * * *",
23
+ EVERY_4_HOURS = "0 0-23/4 * * *",
24
+ EVERY_5_HOURS = "0 0-23/5 * * *",
25
+ EVERY_6_HOURS = "0 0-23/6 * * *",
26
+ EVERY_7_HOURS = "0 0-23/7 * * *",
27
+ EVERY_8_HOURS = "0 0-23/8 * * *",
28
+ EVERY_9_HOURS = "0 0-23/9 * * *",
29
+ EVERY_10_HOURS = "0 0-23/10 * * *",
30
+ EVERY_11_HOURS = "0 0-23/11 * * *",
31
+ EVERY_12_HOURS = "0 0-23/12 * * *",
32
+ EVERY_DAY_AT_1AM = "0 01 * * *",
33
+ EVERY_DAY_AT_2AM = "0 02 * * *",
34
+ EVERY_DAY_AT_3AM = "0 03 * * *",
35
+ EVERY_DAY_AT_4AM = "0 04 * * *",
36
+ EVERY_DAY_AT_5AM = "0 05 * * *",
37
+ EVERY_DAY_AT_6AM = "0 06 * * *",
38
+ EVERY_DAY_AT_7AM = "0 07 * * *",
39
+ EVERY_DAY_AT_8AM = "0 08 * * *",
40
+ EVERY_DAY_AT_9AM = "0 09 * * *",
41
+ EVERY_DAY_AT_10AM = "0 10 * * *",
42
+ EVERY_DAY_AT_11AM = "0 11 * * *",
43
+ EVERY_DAY_AT_NOON = "0 12 * * *",
44
+ EVERY_DAY_AT_1PM = "0 13 * * *",
45
+ EVERY_DAY_AT_2PM = "0 14 * * *",
46
+ EVERY_DAY_AT_3PM = "0 15 * * *",
47
+ EVERY_DAY_AT_4PM = "0 16 * * *",
48
+ EVERY_DAY_AT_5PM = "0 17 * * *",
49
+ EVERY_DAY_AT_6PM = "0 18 * * *",
50
+ EVERY_DAY_AT_7PM = "0 19 * * *",
51
+ EVERY_DAY_AT_8PM = "0 20 * * *",
52
+ EVERY_DAY_AT_9PM = "0 21 * * *",
53
+ EVERY_DAY_AT_10PM = "0 22 * * *",
54
+ EVERY_DAY_AT_11PM = "0 23 * * *",
55
+ EVERY_DAY_AT_MIDNIGHT = "0 0 * * *",
56
+ EVERY_WEEK = "0 0 * * 0",
57
+ EVERY_WEEKDAY = "0 0 * * 1-5",
58
+ EVERY_WEEKEND = "0 0 * * 6,0",
59
+ EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT = "0 0 1 * *",
60
+ EVERY_1ST_DAY_OF_MONTH_AT_NOON = "0 12 1 * *",
61
+ EVERY_2ND_HOUR = "0 */2 * * *",
62
+ EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM = "0 1-23/2 * * *",
63
+ EVERY_2ND_MONTH = "0 0 1 */2 *",
64
+ EVERY_QUARTER = "0 0 1 */3 *",
65
+ EVERY_6_MONTHS = "0 0 1 */6 *",
66
+ EVERY_YEAR = "0 0 1 0 *",
67
+ EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM = "0 */30 9-17 * * *",
68
+ EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM = "0 */30 9-18 * * *",
69
+ EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM = "0 */30 10-19 * * *",
70
+ MONDAY_TO_FRIDAY_AT_1AM = "0 0 01 * * 1-5",
71
+ MONDAY_TO_FRIDAY_AT_2AM = "0 0 02 * * 1-5",
72
+ MONDAY_TO_FRIDAY_AT_3AM = "0 0 03 * * 1-5",
73
+ MONDAY_TO_FRIDAY_AT_4AM = "0 0 04 * * 1-5",
74
+ MONDAY_TO_FRIDAY_AT_5AM = "0 0 05 * * 1-5",
75
+ MONDAY_TO_FRIDAY_AT_6AM = "0 0 06 * * 1-5",
76
+ MONDAY_TO_FRIDAY_AT_7AM = "0 0 07 * * 1-5",
77
+ MONDAY_TO_FRIDAY_AT_8AM = "0 0 08 * * 1-5",
78
+ MONDAY_TO_FRIDAY_AT_9AM = "0 0 09 * * 1-5",
79
+ MONDAY_TO_FRIDAY_AT_09_30AM = "0 30 09 * * 1-5",
80
+ MONDAY_TO_FRIDAY_AT_10AM = "0 0 10 * * 1-5",
81
+ MONDAY_TO_FRIDAY_AT_11AM = "0 0 11 * * 1-5",
82
+ MONDAY_TO_FRIDAY_AT_11_30AM = "0 30 11 * * 1-5",
83
+ MONDAY_TO_FRIDAY_AT_12PM = "0 0 12 * * 1-5",
84
+ MONDAY_TO_FRIDAY_AT_1PM = "0 0 13 * * 1-5",
85
+ MONDAY_TO_FRIDAY_AT_2PM = "0 0 14 * * 1-5",
86
+ MONDAY_TO_FRIDAY_AT_3PM = "0 0 15 * * 1-5",
87
+ MONDAY_TO_FRIDAY_AT_4PM = "0 0 16 * * 1-5",
88
+ MONDAY_TO_FRIDAY_AT_5PM = "0 0 17 * * 1-5",
89
+ MONDAY_TO_FRIDAY_AT_6PM = "0 0 18 * * 1-5",
90
+ MONDAY_TO_FRIDAY_AT_7PM = "0 0 19 * * 1-5",
91
+ MONDAY_TO_FRIDAY_AT_8PM = "0 0 20 * * 1-5",
92
+ MONDAY_TO_FRIDAY_AT_9PM = "0 0 21 * * 1-5",
93
+ MONDAY_TO_FRIDAY_AT_10PM = "0 0 22 * * 1-5",
94
+ MONDAY_TO_FRIDAY_AT_11PM = "0 0 23 * * 1-5"
95
+ }
96
+ export type OpenIdProviderType = 'auth0';
97
+ export type CodeUrl = string;
98
+ export interface TriggerConfig {
99
+ integrationId: IntegrationId;
100
+ collectionName: CollectionName;
101
+ functionName: ServiceFunctionName;
102
+ }
103
+ export interface SchedulerConfig {
104
+ functionName: ServiceFunctionName;
105
+ cronExpression: string;
106
+ exclusive: boolean;
107
+ }
108
+ export interface WebhookConfig {
109
+ functionName: ServiceFunctionName;
110
+ }
111
+ export interface OpenIdProvider {
112
+ providerType: OpenIdProviderType;
113
+ clientId: string;
114
+ domain: string;
115
+ }
116
+ export interface Application {
117
+ appId: AppId;
118
+ createdAt: Date;
119
+ updatedAt: Date;
120
+ allowedHosts: string[];
121
+ openIdProvider?: OpenIdProvider;
122
+ integrations: Record<IntegrationId, IntegrationConfig>;
123
+ codeUrl?: string;
124
+ bundleMetadata?: ApplicationBundleData;
125
+ }
126
+ export interface Schema<T extends IntegrationSchema = any> {
127
+ appId: AppId;
128
+ integrationId: IntegrationId;
129
+ schema: T;
130
+ createdAt: Date;
131
+ updatedAt: Date;
132
+ }
133
+ export interface ApplicationInitDetails {
134
+ codeUrl: string;
135
+ codeUrlId: string;
136
+ permissions: RunPermissions;
137
+ }
138
+ export interface UpdateOpenIdProviderRequest {
139
+ openIdProvider: OpenIdProvider;
140
+ }
141
+ export interface CreateApplicationResponse {
142
+ appId: AppId;
143
+ }
144
+ export interface DeleteIntegrationRequest {
145
+ integrationId: IntegrationId;
146
+ }
147
+ export interface UpdateAllowedHostsRequest {
148
+ allowedHosts: string[];
149
+ }
150
+ export interface CreateEnvironmentRequest {
151
+ sourceAppId: AppId;
152
+ environmentId: EnvironmentId;
153
+ }
154
+ interface BaseUpsertIntegrationRequest<T extends IntegrationTypeWithConfig, C extends IntegrationConfig> {
155
+ id: IntegrationId;
156
+ type: T;
157
+ config: Partial<C>;
158
+ }
159
+ type ConfigurationTypes = {
160
+ [K in IntegrationTypeWithConfig]: IntegrationConfigTypes[K];
161
+ };
162
+ type UpsertIntegrationRequests = {
163
+ [K in IntegrationTypeWithConfig]: BaseUpsertIntegrationRequest<K, ConfigurationTypes[K]>;
164
+ };
165
+ export type UpsertIntegrationRequest = UpsertDataIntegrationRequest | UpsertGraphQLIntegrationRequest | UpsertApiIntegrationRequest | UpsertAiAssistantIntegrationRequest | UpsertAuthIntegrationRequest;
166
+ export type UpsertDataIntegrationRequest = UpsertIntegrationRequests[DatabaseIntegrationType];
167
+ export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests[IntegrationType.graphql];
168
+ export type UpsertApiIntegrationRequest = UpsertIntegrationRequests[IntegrationType.api];
169
+ export type UpsertAiAssistantIntegrationRequest = UpsertIntegrationRequests[IntegrationType.ai_assistant];
170
+ export type UpsertAuthIntegrationRequest = UpsertIntegrationRequests[AuthIntegrationType];
171
+ interface BaseUpsertIntegrationSchemaRequest<T extends IntegrationType, S extends IntegrationSchema> {
172
+ id: IntegrationId;
173
+ type: T;
174
+ schema: S;
175
+ }
176
+ type SchemaTypes = {
177
+ [K in IntegrationSchemaKeys]: IntegrationSchemaTypes[K];
178
+ };
179
+ type UpsertIntegrationSchemaRequests = {
180
+ [K in IntegrationSchemaKeys]: BaseUpsertIntegrationSchemaRequest<K, SchemaTypes[K]>;
181
+ };
182
+ export type UpsertIntegrationSchemaRequest = UpsertDataIntegrationSchemaRequest | UpsertGraphQLIntegrationSchemaRequest | UpsertApiIntegrationSchemaRequest;
183
+ export type UpsertDataIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[DatabaseIntegrationType];
184
+ export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.graphql];
185
+ export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.api];
186
+ export {};
@@ -1,90 +1,90 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CronExpression = void 0;
4
- var CronExpression;
5
- (function (CronExpression) {
6
- CronExpression["EVERY_SECOND"] = "* * * * * *";
7
- CronExpression["EVERY_5_SECONDS"] = "*/5 * * * * *";
8
- CronExpression["EVERY_10_SECONDS"] = "*/10 * * * * *";
9
- CronExpression["EVERY_30_SECONDS"] = "*/30 * * * * *";
10
- CronExpression["EVERY_MINUTE"] = "*/1 * * * *";
11
- CronExpression["EVERY_5_MINUTES"] = "0 */5 * * * *";
12
- CronExpression["EVERY_10_MINUTES"] = "0 */10 * * * *";
13
- CronExpression["EVERY_30_MINUTES"] = "0 */30 * * * *";
14
- CronExpression["EVERY_HOUR"] = "0 0-23/1 * * *";
15
- CronExpression["EVERY_2_HOURS"] = "0 0-23/2 * * *";
16
- CronExpression["EVERY_3_HOURS"] = "0 0-23/3 * * *";
17
- CronExpression["EVERY_4_HOURS"] = "0 0-23/4 * * *";
18
- CronExpression["EVERY_5_HOURS"] = "0 0-23/5 * * *";
19
- CronExpression["EVERY_6_HOURS"] = "0 0-23/6 * * *";
20
- CronExpression["EVERY_7_HOURS"] = "0 0-23/7 * * *";
21
- CronExpression["EVERY_8_HOURS"] = "0 0-23/8 * * *";
22
- CronExpression["EVERY_9_HOURS"] = "0 0-23/9 * * *";
23
- CronExpression["EVERY_10_HOURS"] = "0 0-23/10 * * *";
24
- CronExpression["EVERY_11_HOURS"] = "0 0-23/11 * * *";
25
- CronExpression["EVERY_12_HOURS"] = "0 0-23/12 * * *";
26
- CronExpression["EVERY_DAY_AT_1AM"] = "0 01 * * *";
27
- CronExpression["EVERY_DAY_AT_2AM"] = "0 02 * * *";
28
- CronExpression["EVERY_DAY_AT_3AM"] = "0 03 * * *";
29
- CronExpression["EVERY_DAY_AT_4AM"] = "0 04 * * *";
30
- CronExpression["EVERY_DAY_AT_5AM"] = "0 05 * * *";
31
- CronExpression["EVERY_DAY_AT_6AM"] = "0 06 * * *";
32
- CronExpression["EVERY_DAY_AT_7AM"] = "0 07 * * *";
33
- CronExpression["EVERY_DAY_AT_8AM"] = "0 08 * * *";
34
- CronExpression["EVERY_DAY_AT_9AM"] = "0 09 * * *";
35
- CronExpression["EVERY_DAY_AT_10AM"] = "0 10 * * *";
36
- CronExpression["EVERY_DAY_AT_11AM"] = "0 11 * * *";
37
- CronExpression["EVERY_DAY_AT_NOON"] = "0 12 * * *";
38
- CronExpression["EVERY_DAY_AT_1PM"] = "0 13 * * *";
39
- CronExpression["EVERY_DAY_AT_2PM"] = "0 14 * * *";
40
- CronExpression["EVERY_DAY_AT_3PM"] = "0 15 * * *";
41
- CronExpression["EVERY_DAY_AT_4PM"] = "0 16 * * *";
42
- CronExpression["EVERY_DAY_AT_5PM"] = "0 17 * * *";
43
- CronExpression["EVERY_DAY_AT_6PM"] = "0 18 * * *";
44
- CronExpression["EVERY_DAY_AT_7PM"] = "0 19 * * *";
45
- CronExpression["EVERY_DAY_AT_8PM"] = "0 20 * * *";
46
- CronExpression["EVERY_DAY_AT_9PM"] = "0 21 * * *";
47
- CronExpression["EVERY_DAY_AT_10PM"] = "0 22 * * *";
48
- CronExpression["EVERY_DAY_AT_11PM"] = "0 23 * * *";
49
- CronExpression["EVERY_DAY_AT_MIDNIGHT"] = "0 0 * * *";
50
- CronExpression["EVERY_WEEK"] = "0 0 * * 0";
51
- CronExpression["EVERY_WEEKDAY"] = "0 0 * * 1-5";
52
- CronExpression["EVERY_WEEKEND"] = "0 0 * * 6,0";
53
- CronExpression["EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT"] = "0 0 1 * *";
54
- CronExpression["EVERY_1ST_DAY_OF_MONTH_AT_NOON"] = "0 12 1 * *";
55
- CronExpression["EVERY_2ND_HOUR"] = "0 */2 * * *";
56
- CronExpression["EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM"] = "0 1-23/2 * * *";
57
- CronExpression["EVERY_2ND_MONTH"] = "0 0 1 */2 *";
58
- CronExpression["EVERY_QUARTER"] = "0 0 1 */3 *";
59
- CronExpression["EVERY_6_MONTHS"] = "0 0 1 */6 *";
60
- CronExpression["EVERY_YEAR"] = "0 0 1 0 *";
61
- CronExpression["EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM"] = "0 */30 9-17 * * *";
62
- CronExpression["EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM"] = "0 */30 9-18 * * *";
63
- CronExpression["EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM"] = "0 */30 10-19 * * *";
64
- CronExpression["MONDAY_TO_FRIDAY_AT_1AM"] = "0 0 01 * * 1-5";
65
- CronExpression["MONDAY_TO_FRIDAY_AT_2AM"] = "0 0 02 * * 1-5";
66
- CronExpression["MONDAY_TO_FRIDAY_AT_3AM"] = "0 0 03 * * 1-5";
67
- CronExpression["MONDAY_TO_FRIDAY_AT_4AM"] = "0 0 04 * * 1-5";
68
- CronExpression["MONDAY_TO_FRIDAY_AT_5AM"] = "0 0 05 * * 1-5";
69
- CronExpression["MONDAY_TO_FRIDAY_AT_6AM"] = "0 0 06 * * 1-5";
70
- CronExpression["MONDAY_TO_FRIDAY_AT_7AM"] = "0 0 07 * * 1-5";
71
- CronExpression["MONDAY_TO_FRIDAY_AT_8AM"] = "0 0 08 * * 1-5";
72
- CronExpression["MONDAY_TO_FRIDAY_AT_9AM"] = "0 0 09 * * 1-5";
73
- CronExpression["MONDAY_TO_FRIDAY_AT_09_30AM"] = "0 30 09 * * 1-5";
74
- CronExpression["MONDAY_TO_FRIDAY_AT_10AM"] = "0 0 10 * * 1-5";
75
- CronExpression["MONDAY_TO_FRIDAY_AT_11AM"] = "0 0 11 * * 1-5";
76
- CronExpression["MONDAY_TO_FRIDAY_AT_11_30AM"] = "0 30 11 * * 1-5";
77
- CronExpression["MONDAY_TO_FRIDAY_AT_12PM"] = "0 0 12 * * 1-5";
78
- CronExpression["MONDAY_TO_FRIDAY_AT_1PM"] = "0 0 13 * * 1-5";
79
- CronExpression["MONDAY_TO_FRIDAY_AT_2PM"] = "0 0 14 * * 1-5";
80
- CronExpression["MONDAY_TO_FRIDAY_AT_3PM"] = "0 0 15 * * 1-5";
81
- CronExpression["MONDAY_TO_FRIDAY_AT_4PM"] = "0 0 16 * * 1-5";
82
- CronExpression["MONDAY_TO_FRIDAY_AT_5PM"] = "0 0 17 * * 1-5";
83
- CronExpression["MONDAY_TO_FRIDAY_AT_6PM"] = "0 0 18 * * 1-5";
84
- CronExpression["MONDAY_TO_FRIDAY_AT_7PM"] = "0 0 19 * * 1-5";
85
- CronExpression["MONDAY_TO_FRIDAY_AT_8PM"] = "0 0 20 * * 1-5";
86
- CronExpression["MONDAY_TO_FRIDAY_AT_9PM"] = "0 0 21 * * 1-5";
87
- CronExpression["MONDAY_TO_FRIDAY_AT_10PM"] = "0 0 22 * * 1-5";
88
- CronExpression["MONDAY_TO_FRIDAY_AT_11PM"] = "0 0 23 * * 1-5";
89
- })(CronExpression = exports.CronExpression || (exports.CronExpression = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CronExpression = void 0;
4
+ var CronExpression;
5
+ (function (CronExpression) {
6
+ CronExpression["EVERY_SECOND"] = "* * * * * *";
7
+ CronExpression["EVERY_5_SECONDS"] = "*/5 * * * * *";
8
+ CronExpression["EVERY_10_SECONDS"] = "*/10 * * * * *";
9
+ CronExpression["EVERY_30_SECONDS"] = "*/30 * * * * *";
10
+ CronExpression["EVERY_MINUTE"] = "*/1 * * * *";
11
+ CronExpression["EVERY_5_MINUTES"] = "0 */5 * * * *";
12
+ CronExpression["EVERY_10_MINUTES"] = "0 */10 * * * *";
13
+ CronExpression["EVERY_30_MINUTES"] = "0 */30 * * * *";
14
+ CronExpression["EVERY_HOUR"] = "0 0-23/1 * * *";
15
+ CronExpression["EVERY_2_HOURS"] = "0 0-23/2 * * *";
16
+ CronExpression["EVERY_3_HOURS"] = "0 0-23/3 * * *";
17
+ CronExpression["EVERY_4_HOURS"] = "0 0-23/4 * * *";
18
+ CronExpression["EVERY_5_HOURS"] = "0 0-23/5 * * *";
19
+ CronExpression["EVERY_6_HOURS"] = "0 0-23/6 * * *";
20
+ CronExpression["EVERY_7_HOURS"] = "0 0-23/7 * * *";
21
+ CronExpression["EVERY_8_HOURS"] = "0 0-23/8 * * *";
22
+ CronExpression["EVERY_9_HOURS"] = "0 0-23/9 * * *";
23
+ CronExpression["EVERY_10_HOURS"] = "0 0-23/10 * * *";
24
+ CronExpression["EVERY_11_HOURS"] = "0 0-23/11 * * *";
25
+ CronExpression["EVERY_12_HOURS"] = "0 0-23/12 * * *";
26
+ CronExpression["EVERY_DAY_AT_1AM"] = "0 01 * * *";
27
+ CronExpression["EVERY_DAY_AT_2AM"] = "0 02 * * *";
28
+ CronExpression["EVERY_DAY_AT_3AM"] = "0 03 * * *";
29
+ CronExpression["EVERY_DAY_AT_4AM"] = "0 04 * * *";
30
+ CronExpression["EVERY_DAY_AT_5AM"] = "0 05 * * *";
31
+ CronExpression["EVERY_DAY_AT_6AM"] = "0 06 * * *";
32
+ CronExpression["EVERY_DAY_AT_7AM"] = "0 07 * * *";
33
+ CronExpression["EVERY_DAY_AT_8AM"] = "0 08 * * *";
34
+ CronExpression["EVERY_DAY_AT_9AM"] = "0 09 * * *";
35
+ CronExpression["EVERY_DAY_AT_10AM"] = "0 10 * * *";
36
+ CronExpression["EVERY_DAY_AT_11AM"] = "0 11 * * *";
37
+ CronExpression["EVERY_DAY_AT_NOON"] = "0 12 * * *";
38
+ CronExpression["EVERY_DAY_AT_1PM"] = "0 13 * * *";
39
+ CronExpression["EVERY_DAY_AT_2PM"] = "0 14 * * *";
40
+ CronExpression["EVERY_DAY_AT_3PM"] = "0 15 * * *";
41
+ CronExpression["EVERY_DAY_AT_4PM"] = "0 16 * * *";
42
+ CronExpression["EVERY_DAY_AT_5PM"] = "0 17 * * *";
43
+ CronExpression["EVERY_DAY_AT_6PM"] = "0 18 * * *";
44
+ CronExpression["EVERY_DAY_AT_7PM"] = "0 19 * * *";
45
+ CronExpression["EVERY_DAY_AT_8PM"] = "0 20 * * *";
46
+ CronExpression["EVERY_DAY_AT_9PM"] = "0 21 * * *";
47
+ CronExpression["EVERY_DAY_AT_10PM"] = "0 22 * * *";
48
+ CronExpression["EVERY_DAY_AT_11PM"] = "0 23 * * *";
49
+ CronExpression["EVERY_DAY_AT_MIDNIGHT"] = "0 0 * * *";
50
+ CronExpression["EVERY_WEEK"] = "0 0 * * 0";
51
+ CronExpression["EVERY_WEEKDAY"] = "0 0 * * 1-5";
52
+ CronExpression["EVERY_WEEKEND"] = "0 0 * * 6,0";
53
+ CronExpression["EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT"] = "0 0 1 * *";
54
+ CronExpression["EVERY_1ST_DAY_OF_MONTH_AT_NOON"] = "0 12 1 * *";
55
+ CronExpression["EVERY_2ND_HOUR"] = "0 */2 * * *";
56
+ CronExpression["EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM"] = "0 1-23/2 * * *";
57
+ CronExpression["EVERY_2ND_MONTH"] = "0 0 1 */2 *";
58
+ CronExpression["EVERY_QUARTER"] = "0 0 1 */3 *";
59
+ CronExpression["EVERY_6_MONTHS"] = "0 0 1 */6 *";
60
+ CronExpression["EVERY_YEAR"] = "0 0 1 0 *";
61
+ CronExpression["EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM"] = "0 */30 9-17 * * *";
62
+ CronExpression["EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM"] = "0 */30 9-18 * * *";
63
+ CronExpression["EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM"] = "0 */30 10-19 * * *";
64
+ CronExpression["MONDAY_TO_FRIDAY_AT_1AM"] = "0 0 01 * * 1-5";
65
+ CronExpression["MONDAY_TO_FRIDAY_AT_2AM"] = "0 0 02 * * 1-5";
66
+ CronExpression["MONDAY_TO_FRIDAY_AT_3AM"] = "0 0 03 * * 1-5";
67
+ CronExpression["MONDAY_TO_FRIDAY_AT_4AM"] = "0 0 04 * * 1-5";
68
+ CronExpression["MONDAY_TO_FRIDAY_AT_5AM"] = "0 0 05 * * 1-5";
69
+ CronExpression["MONDAY_TO_FRIDAY_AT_6AM"] = "0 0 06 * * 1-5";
70
+ CronExpression["MONDAY_TO_FRIDAY_AT_7AM"] = "0 0 07 * * 1-5";
71
+ CronExpression["MONDAY_TO_FRIDAY_AT_8AM"] = "0 0 08 * * 1-5";
72
+ CronExpression["MONDAY_TO_FRIDAY_AT_9AM"] = "0 0 09 * * 1-5";
73
+ CronExpression["MONDAY_TO_FRIDAY_AT_09_30AM"] = "0 30 09 * * 1-5";
74
+ CronExpression["MONDAY_TO_FRIDAY_AT_10AM"] = "0 0 10 * * 1-5";
75
+ CronExpression["MONDAY_TO_FRIDAY_AT_11AM"] = "0 0 11 * * 1-5";
76
+ CronExpression["MONDAY_TO_FRIDAY_AT_11_30AM"] = "0 30 11 * * 1-5";
77
+ CronExpression["MONDAY_TO_FRIDAY_AT_12PM"] = "0 0 12 * * 1-5";
78
+ CronExpression["MONDAY_TO_FRIDAY_AT_1PM"] = "0 0 13 * * 1-5";
79
+ CronExpression["MONDAY_TO_FRIDAY_AT_2PM"] = "0 0 14 * * 1-5";
80
+ CronExpression["MONDAY_TO_FRIDAY_AT_3PM"] = "0 0 15 * * 1-5";
81
+ CronExpression["MONDAY_TO_FRIDAY_AT_4PM"] = "0 0 16 * * 1-5";
82
+ CronExpression["MONDAY_TO_FRIDAY_AT_5PM"] = "0 0 17 * * 1-5";
83
+ CronExpression["MONDAY_TO_FRIDAY_AT_6PM"] = "0 0 18 * * 1-5";
84
+ CronExpression["MONDAY_TO_FRIDAY_AT_7PM"] = "0 0 19 * * 1-5";
85
+ CronExpression["MONDAY_TO_FRIDAY_AT_8PM"] = "0 0 20 * * 1-5";
86
+ CronExpression["MONDAY_TO_FRIDAY_AT_9PM"] = "0 0 21 * * 1-5";
87
+ CronExpression["MONDAY_TO_FRIDAY_AT_10PM"] = "0 0 22 * * 1-5";
88
+ CronExpression["MONDAY_TO_FRIDAY_AT_11PM"] = "0 0 23 * * 1-5";
89
+ })(CronExpression = exports.CronExpression || (exports.CronExpression = {}));
90
90
  //# sourceMappingURL=application.types.js.map
@@ -1,3 +1,3 @@
1
- import { JSONSchemaType } from 'ajv';
2
- import { ExecuteBackendFunctionRequest } from './backend-function.types';
3
- export declare const ExecuteBackendFunctionRequestSchema: JSONSchemaType<ExecuteBackendFunctionRequest>;
1
+ import { JSONSchemaType } from 'ajv';
2
+ import { ExecuteBackendFunctionRequest } from './backend-function.types';
3
+ export declare const ExecuteBackendFunctionRequestSchema: JSONSchemaType<ExecuteBackendFunctionRequest>;
@@ -1,13 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExecuteBackendFunctionRequestSchema = void 0;
4
- exports.ExecuteBackendFunctionRequestSchema = {
5
- type: 'object',
6
- required: ['functionName', 'paramsArrayStr', 'clientRequestId'],
7
- properties: {
8
- functionName: { type: 'string', nullable: false },
9
- paramsArrayStr: { type: 'string', nullable: false },
10
- clientRequestId: { type: 'string', nullable: false },
11
- },
12
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExecuteBackendFunctionRequestSchema = void 0;
4
+ exports.ExecuteBackendFunctionRequestSchema = {
5
+ type: 'object',
6
+ required: ['functionName', 'paramsArrayStr', 'clientRequestId'],
7
+ properties: {
8
+ functionName: { type: 'string', nullable: false },
9
+ paramsArrayStr: { type: 'string', nullable: false },
10
+ clientRequestId: { type: 'string', nullable: false },
11
+ },
12
+ };
13
13
  //# sourceMappingURL=backend-function.schemas.js.map
@@ -1,6 +1,6 @@
1
- import { ClientRequestId } from './communication.types';
2
- export interface ExecuteBackendFunctionRequest {
3
- functionName: string;
4
- paramsArrayStr: string;
5
- clientRequestId: ClientRequestId;
6
- }
1
+ import { ClientRequestId } from './communication.types';
2
+ export interface ExecuteBackendFunctionRequest {
3
+ functionName: string;
4
+ paramsArrayStr: string;
5
+ clientRequestId: ClientRequestId;
6
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=backend-function.types.js.map