@etohq/utils 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/LICENSE +21 -0
  2. package/dist/auth/token.d.ts +1 -1
  3. package/dist/auth/token.d.ts.map +1 -1
  4. package/dist/bundles.js +17 -7
  5. package/dist/bundles.js.map +1 -1
  6. package/dist/common/api-error.d.ts +205 -0
  7. package/dist/common/api-error.d.ts.map +1 -0
  8. package/dist/common/api-error.js +274 -0
  9. package/dist/common/api-error.js.map +1 -0
  10. package/dist/common/camel-to-snake-case.d.ts.map +1 -1
  11. package/dist/common/deep-copy.js +17 -7
  12. package/dist/common/deep-copy.js.map +1 -1
  13. package/dist/common/define-config.d.ts.map +1 -1
  14. package/dist/common/errors.d.ts +6 -7
  15. package/dist/common/errors.d.ts.map +1 -1
  16. package/dist/common/errors.js +25 -6
  17. package/dist/common/errors.js.map +1 -1
  18. package/dist/common/filter-operator-map.d.ts +1 -1
  19. package/dist/common/filter-operator-map.d.ts.map +1 -1
  20. package/dist/common/get-duplicates.d.ts.map +1 -1
  21. package/dist/common/get-iso-string-from-date.d.ts.map +1 -1
  22. package/dist/common/optional-numeric-serializer.d.ts.map +1 -1
  23. package/dist/common/partition-array.d.ts.map +1 -1
  24. package/dist/common/remove-undefined.d.ts.map +1 -1
  25. package/dist/common/to-handle.d.ts.map +1 -1
  26. package/dist/common/to-kebab-case.d.ts.map +1 -1
  27. package/dist/common/validate-handle.d.ts.map +1 -1
  28. package/dist/dal/mikro-orm/big-number-field.d.ts.map +1 -1
  29. package/dist/dal/mikro-orm/db-error-mapper.d.ts.map +1 -1
  30. package/dist/dal/mikro-orm/decorators/foreign-key.d.ts.map +1 -1
  31. package/dist/dal/mikro-orm/decorators/searchable.d.ts.map +1 -1
  32. package/dist/dal/mikro-orm/mikro-orm-free-text-search-filter.d.ts.map +1 -1
  33. package/dist/dal/mikro-orm/mikro-orm-repository.d.ts +2 -1
  34. package/dist/dal/mikro-orm/mikro-orm-repository.d.ts.map +1 -1
  35. package/dist/dal/mikro-orm/mikro-orm-repository.js.map +1 -1
  36. package/dist/dal/mikro-orm/mikro-orm-serializer.d.ts.map +1 -1
  37. package/dist/dal/mikro-orm/utils.d.ts.map +1 -1
  38. package/dist/dml/helpers/create-graphql.d.ts.map +1 -1
  39. package/dist/dml/helpers/create-mikro-orm-entity.d.ts +0 -3
  40. package/dist/dml/helpers/create-mikro-orm-entity.d.ts.map +1 -1
  41. package/dist/dml/relations/belongs-to.d.ts.map +1 -1
  42. package/dist/dml/relations/has-many.d.ts.map +1 -1
  43. package/dist/dml/relations/has-one-fk.d.ts.map +1 -1
  44. package/dist/dml/relations/has-one.d.ts.map +1 -1
  45. package/dist/dml/relations/many-to-many.d.ts.map +1 -1
  46. package/dist/exceptions/is-duplicate-error.d.ts.map +1 -1
  47. package/dist/graphql/graphql-to-ts-types.js +17 -7
  48. package/dist/graphql/graphql-to-ts-types.js.map +1 -1
  49. package/dist/link/compose-link-name.d.ts.map +1 -1
  50. package/dist/modules-sdk/create-pg-connection.d.ts +1 -1
  51. package/dist/modules-sdk/create-pg-connection.d.ts.map +1 -1
  52. package/dist/modules-sdk/decorators/context-parameter.d.ts.map +1 -1
  53. package/dist/modules-sdk/decorators/emit-events.d.ts.map +1 -1
  54. package/dist/modules-sdk/eto-internal-service.d.ts.map +1 -1
  55. package/dist/modules-sdk/eto-internal-service.js.map +1 -1
  56. package/dist/modules-sdk/event-builder-factory.d.ts.map +1 -1
  57. package/dist/modules-sdk/joiner-config-builder.js +17 -7
  58. package/dist/modules-sdk/joiner-config-builder.js.map +1 -1
  59. package/dist/modules-sdk/migration-scripts/migration-down.d.ts.map +1 -1
  60. package/dist/modules-sdk/migration-scripts/migration-generate.d.ts.map +1 -1
  61. package/dist/modules-sdk/migration-scripts/migration-up.d.ts.map +1 -1
  62. package/dist/modules-sdk/migration-scripts/seed.d.ts.map +1 -1
  63. package/dist/pg/index.d.ts +1 -1
  64. package/dist/pg/index.d.ts.map +1 -1
  65. package/dist/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +33 -30
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Etohq
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  export declare const generateJwtToken: (tokenPayload: Record<string, unknown>, jwtConfig: {
2
2
  secret: string | undefined;
3
3
  expiresIn: string | undefined;
4
- }) => string;
4
+ }) => any;
5
5
  //# sourceMappingURL=token.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/auth/token.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,iBACb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,aAC1B;IACT,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B,WAYF,CAAA"}
1
+ {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/auth/token.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,GAC3B,cAAc,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrC,WAAW;IACT,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B,QAYF,CAAA"}
package/dist/bundles.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.UserUtils = exports.SearchUtils = exports.OrchestrationUtils = exports.ModulesSdkUtils = exports.LinkUtils = exports.GraphQLUtils = exports.FeatureFlagUtils = exports.EventBusUtils = exports.DMLUtils = exports.DefaultsUtils = exports.DALUtils = exports.ApiKeyUtils = void 0;
27
37
  exports.ApiKeyUtils = __importStar(require("./api-key"));
@@ -1 +1 @@
1
- {"version":3,"file":"bundles.js","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAwC;AACxC,kDAAiC;AACjC,4DAA2C;AAC3C,kDAAiC;AACjC,6DAA4C;AAC5C,oEAAmD;AACnD,0DAAyC;AACzC,oDAAmC;AACnC,iEAAgD;AAChD,sEAAqD;AACrD,wDAAuC;AACvC,oDAAmC"}
1
+ {"version":3,"file":"bundles.js","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAwC;AACxC,kDAAiC;AACjC,4DAA2C;AAC3C,kDAAiC;AACjC,6DAA4C;AAC5C,oEAAmD;AACnD,0DAAyC;AACzC,oDAAmC;AACnC,iEAAgD;AAChD,sEAAqD;AACrD,wDAAuC;AACvC,oDAAmC"}
@@ -0,0 +1,205 @@
1
+ export declare class APIError extends Error {
2
+ /**
3
+ * The error code.
4
+ */
5
+ readonly code: ErrCode;
6
+ readonly details?: ErrDetails;
7
+ static canceled(msg: string, cause?: Error): APIError;
8
+ static unknown(msg: string, cause?: Error): APIError;
9
+ static invalidArgument(msg: string, cause?: Error): APIError;
10
+ static deadlineExceeded(msg: string, cause?: Error): APIError;
11
+ static notFound(msg: string, cause?: Error): APIError;
12
+ static alreadyExists(msg: string, cause?: Error): APIError;
13
+ static permissionDenied(msg: string, cause?: Error): APIError;
14
+ static resourceExhausted(msg: string, cause?: Error): APIError;
15
+ static failedPrecondition(msg: string, cause?: Error): APIError;
16
+ static aborted(msg: string, cause?: Error): APIError;
17
+ static outOfRange(msg: string, cause?: Error): APIError;
18
+ static unimplemented(msg: string, cause?: Error): APIError;
19
+ static internal(msg: string, cause?: Error): APIError;
20
+ static unavailable(msg: string, cause?: Error): APIError;
21
+ static dataLoss(msg: string, cause?: Error): APIError;
22
+ static unauthenticated(msg: string, cause?: Error): APIError;
23
+ withDetails(details: ErrDetails): APIError;
24
+ constructor(code: ErrCode, msg: string, cause?: Error, details?: ErrDetails);
25
+ }
26
+ export type ErrDetails = Record<string, any>;
27
+ export declare enum ErrCode {
28
+ /**
29
+ * OK indicates the operation was successful.
30
+ */
31
+ OK = "ok",
32
+ /**
33
+ * Canceled indicates the operation was canceled (typically by the caller).
34
+ *
35
+ * Encore will generate this error code when cancellation is requested.
36
+ */
37
+ Canceled = "canceled",
38
+ /**
39
+ * Unknown error. An example of where this error may be returned is
40
+ * if a Status value received from another address space belongs to
41
+ * an error-space that is not known in this address space. Also
42
+ * errors raised by APIs that do not return enough error information
43
+ * may be converted to this error.
44
+ *
45
+ * Encore will generate this error code in the above two mentioned cases.
46
+ */
47
+ Unknown = "unknown",
48
+ /**
49
+ * InvalidArgument indicates client specified an invalid argument.
50
+ * Note that this differs from FailedPrecondition. It indicates arguments
51
+ * that are problematic regardless of the state of the system
52
+ * (e.g., a malformed file name).
53
+ *
54
+ * This error code will not be generated by the gRPC framework.
55
+ */
56
+ InvalidArgument = "invalid_argument",
57
+ /**
58
+ * DeadlineExceeded means operation expired before completion.
59
+ * For operations that change the state of the system, this error may be
60
+ * returned even if the operation has completed successfully. For
61
+ * example, a successful response from a server could have been delayed
62
+ * long enough for the deadline to expire.
63
+ *
64
+ * The gRPC framework will generate this error code when the deadline is
65
+ * exceeded.
66
+ */
67
+ DeadlineExceeded = "deadline_exceeded",
68
+ /**
69
+ * NotFound means some requested entity (e.g., file or directory) was
70
+ * not found.
71
+ *
72
+ * This error code will not be generated by the gRPC framework.
73
+ */
74
+ NotFound = "not_found",
75
+ /**
76
+ * AlreadyExists means an attempt to create an entity failed because one
77
+ * already exists.
78
+ *
79
+ * This error code will not be generated by the gRPC framework.
80
+ */
81
+ AlreadyExists = "already_exists",
82
+ /**
83
+ * PermissionDenied indicates the caller does not have permission to
84
+ * execute the specified operation. It must not be used for rejections
85
+ * caused by exhausting some resource (use ResourceExhausted
86
+ * instead for those errors). It must not be
87
+ * used if the caller cannot be identified (use Unauthenticated
88
+ * instead for those errors).
89
+ *
90
+ * This error code will not be generated by the gRPC core framework,
91
+ * but expect authentication middleware to use it.
92
+ */
93
+ PermissionDenied = "permission_denied",
94
+ /**
95
+ * ResourceExhausted indicates some resource has been exhausted, perhaps
96
+ * a per-user quota, or perhaps the entire file system is out of space.
97
+ *
98
+ * This error code will be generated by the gRPC framework in
99
+ * out-of-memory and server overload situations, or when a message is
100
+ * larger than the configured maximum size.
101
+ */
102
+ ResourceExhausted = "resource_exhausted",
103
+ /**
104
+ * FailedPrecondition indicates operation was rejected because the
105
+ * system is not in a state required for the operation's execution.
106
+ * For example, directory to be deleted may be non-empty, an rmdir
107
+ * operation is applied to a non-directory, etc.
108
+ *
109
+ * A litmus test that may help a service implementor in deciding
110
+ * between FailedPrecondition, Aborted, and Unavailable:
111
+ * (a) Use Unavailable if the client can retry just the failing call.
112
+ * (b) Use Aborted if the client should retry at a higher-level
113
+ * (e.g., restarting a read-modify-write sequence).
114
+ * (c) Use FailedPrecondition if the client should not retry until
115
+ * the system state has been explicitly fixed. E.g., if an "rmdir"
116
+ * fails because the directory is non-empty, FailedPrecondition
117
+ * should be returned since the client should not retry unless
118
+ * they have first fixed up the directory by deleting files from it.
119
+ * (d) Use FailedPrecondition if the client performs conditional
120
+ * REST Get/Update/Delete on a resource and the resource on the
121
+ * server does not match the condition. E.g., conflicting
122
+ * read-modify-write on the same resource.
123
+ *
124
+ * This error code will not be generated by the gRPC framework.
125
+ */
126
+ FailedPrecondition = "failed_precondition",
127
+ /**
128
+ * Aborted indicates the operation was aborted, typically due to a
129
+ * concurrency issue like sequencer check failures, transaction aborts,
130
+ * etc.
131
+ *
132
+ * See litmus test above for deciding between FailedPrecondition,
133
+ * Aborted, and Unavailable.
134
+ */
135
+ Aborted = "aborted",
136
+ /**
137
+ * OutOfRange means operation was attempted past the valid range.
138
+ * E.g., seeking or reading past end of file.
139
+ *
140
+ * Unlike InvalidArgument, this error indicates a problem that may
141
+ * be fixed if the system state changes. For example, a 32-bit file
142
+ * system will generate InvalidArgument if asked to read at an
143
+ * offset that is not in the range [0,2^32-1], but it will generate
144
+ * OutOfRange if asked to read from an offset past the current
145
+ * file size.
146
+ *
147
+ * There is a fair bit of overlap between FailedPrecondition and
148
+ * OutOfRange. We recommend using OutOfRange (the more specific
149
+ * error) when it applies so that callers who are iterating through
150
+ * a space can easily look for an OutOfRange error to detect when
151
+ * they are done.
152
+ *
153
+ * This error code will not be generated by the gRPC framework.
154
+ */
155
+ OutOfRange = "out_of_range",
156
+ /**
157
+ * Unimplemented indicates operation is not implemented or not
158
+ * supported/enabled in this service.
159
+ *
160
+ * This error code will be generated by the gRPC framework. Most
161
+ * commonly, you will see this error code when a method implementation
162
+ * is missing on the server. It can also be generated for unknown
163
+ * compression algorithms or a disagreement as to whether an RPC should
164
+ * be streaming.
165
+ */
166
+ Unimplemented = "unimplemented",
167
+ /**
168
+ * Internal errors. Means some invariants expected by underlying
169
+ * system has been broken. If you see one of these errors,
170
+ * something is very broken.
171
+ *
172
+ * This error code will be generated by the gRPC framework in several
173
+ * internal error conditions.
174
+ */
175
+ Internal = "internal",
176
+ /**
177
+ * Unavailable indicates the service is currently unavailable.
178
+ * This is a most likely a transient condition and may be corrected
179
+ * by retrying with a backoff. Note that it is not always safe to retry
180
+ * non-idempotent operations.
181
+ *
182
+ * See litmus test above for deciding between FailedPrecondition,
183
+ * Aborted, and Unavailable.
184
+ *
185
+ * This error code will be generated by the gRPC framework during
186
+ * abrupt shutdown of a server process or network connection.
187
+ */
188
+ Unavailable = "unavailable",
189
+ /**
190
+ * DataLoss indicates unrecoverable data loss or corruption.
191
+ *
192
+ * This error code will not be generated by the gRPC framework.
193
+ */
194
+ DataLoss = "data_loss",
195
+ /**
196
+ * Unauthenticated indicates the request does not have valid
197
+ * authentication credentials for the operation.
198
+ *
199
+ * The gRPC framework will generate this error code when the
200
+ * authentication metadata is invalid or a Credentials callback fails,
201
+ * but also expect authentication middleware to generate it.
202
+ */
203
+ Unauthenticated = "unauthenticated"
204
+ }
205
+ //# sourceMappingURL=api-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-error.d.ts","sourceRoot":"","sources":["../../src/common/api-error.ts"],"names":[],"mappings":"AAGA,qBAAa,QAAS,SAAQ,KAAK;IACjC;;OAEG;IACH,SAAgB,IAAI,EAAE,OAAO,CAAA;IAC7B,SAAgB,OAAO,CAAC,EAAE,UAAU,CAAA;IAGpC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAK1C,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAKzC,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAKjD,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAKlD,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAK1C,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAK/C,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAKlD,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAKnD,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAKpD,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAKzC,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAK5C,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAA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ACH,QAAQ,cAAc;IAEtB;;;;;;;OAOG;IACH,eAAe,oBAAoB;CACpC"}
@@ -0,0 +1,274 @@
1
+ "use strict";
2
+ // https://github.com/encoredev/encore/blob/main/runtimes/js/encore.dev/api/error.ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ErrCode = exports.APIError = void 0;
5
+ class APIError extends Error {
6
+ // Constructs an APIError with the Canceled error code.
7
+ static canceled(msg, cause) {
8
+ return new APIError(ErrCode.Canceled, msg, cause);
9
+ }
10
+ // Constructs an APIError with the Unknown error code.
11
+ static unknown(msg, cause) {
12
+ return new APIError(ErrCode.Unknown, msg, cause);
13
+ }
14
+ // Constructs an APIError with the InvalidArgument error code.
15
+ static invalidArgument(msg, cause) {
16
+ return new APIError(ErrCode.InvalidArgument, msg, cause);
17
+ }
18
+ // Constructs an APIError with the DeadlineExceeded error code.
19
+ static deadlineExceeded(msg, cause) {
20
+ return new APIError(ErrCode.DeadlineExceeded, msg, cause);
21
+ }
22
+ // Constructs an APIError with the NotFound error code.
23
+ static notFound(msg, cause) {
24
+ return new APIError(ErrCode.NotFound, msg, cause);
25
+ }
26
+ // Constructs an APIError with the AlreadyExists error code.
27
+ static alreadyExists(msg, cause) {
28
+ return new APIError(ErrCode.AlreadyExists, msg, cause);
29
+ }
30
+ // Constructs an APIError with the PermissionDenied error code.
31
+ static permissionDenied(msg, cause) {
32
+ return new APIError(ErrCode.PermissionDenied, msg, cause);
33
+ }
34
+ // Constructs an APIError with the ResourceExhausted error code.
35
+ static resourceExhausted(msg, cause) {
36
+ return new APIError(ErrCode.ResourceExhausted, msg, cause);
37
+ }
38
+ // Constructs an APIError with the FailedPrecondition error code.
39
+ static failedPrecondition(msg, cause) {
40
+ return new APIError(ErrCode.FailedPrecondition, msg, cause);
41
+ }
42
+ // Constructs an APIError with the Aborted error code.
43
+ static aborted(msg, cause) {
44
+ return new APIError(ErrCode.Aborted, msg, cause);
45
+ }
46
+ // Constructs an APIError with the OutOfRange error code.
47
+ static outOfRange(msg, cause) {
48
+ return new APIError(ErrCode.OutOfRange, msg, cause);
49
+ }
50
+ // Constructs an APIError with the Unimplemented error code.
51
+ static unimplemented(msg, cause) {
52
+ return new APIError(ErrCode.Unimplemented, msg, cause);
53
+ }
54
+ // Constructs an APIError with the Internal error code.
55
+ static internal(msg, cause) {
56
+ return new APIError(ErrCode.Internal, msg, cause);
57
+ }
58
+ // Constructs an APIError with the Unavailable error code.
59
+ static unavailable(msg, cause) {
60
+ return new APIError(ErrCode.Unavailable, msg, cause);
61
+ }
62
+ // Constructs an APIError with the DataLoss error code.
63
+ static dataLoss(msg, cause) {
64
+ return new APIError(ErrCode.DataLoss, msg, cause);
65
+ }
66
+ // Constructs an APIError with the Unauthenticated error code.
67
+ static unauthenticated(msg, cause) {
68
+ return new APIError(ErrCode.Unauthenticated, msg, cause);
69
+ }
70
+ // Constructs a new APIError from the previous one with the provided details
71
+ withDetails(details) {
72
+ // @ts-ignore
73
+ return new APIError(this.code, this.message, this.cause, details);
74
+ }
75
+ // Constructs an APIError with the given error code, message, and (optionally) cause.
76
+ constructor(code, msg, cause, details) {
77
+ // extending errors causes issues after you construct them, unless you apply the following fixes
78
+ // @ts-ignore
79
+ super(msg, { cause });
80
+ this.code = code;
81
+ this.details = details;
82
+ // set error name as constructor name, make it not enumerable to keep native Error behavior
83
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target#new.target_in_constructors
84
+ Object.defineProperty(this, "name", {
85
+ value: "APIError",
86
+ enumerable: false,
87
+ configurable: true,
88
+ });
89
+ // Fix the prototype chain, capture stack trace.
90
+ Object.setPrototypeOf(this, APIError.prototype);
91
+ Error.captureStackTrace(this, this.constructor);
92
+ }
93
+ }
94
+ exports.APIError = APIError;
95
+ var ErrCode;
96
+ (function (ErrCode) {
97
+ /**
98
+ * OK indicates the operation was successful.
99
+ */
100
+ ErrCode["OK"] = "ok";
101
+ /**
102
+ * Canceled indicates the operation was canceled (typically by the caller).
103
+ *
104
+ * Encore will generate this error code when cancellation is requested.
105
+ */
106
+ ErrCode["Canceled"] = "canceled";
107
+ /**
108
+ * Unknown error. An example of where this error may be returned is
109
+ * if a Status value received from another address space belongs to
110
+ * an error-space that is not known in this address space. Also
111
+ * errors raised by APIs that do not return enough error information
112
+ * may be converted to this error.
113
+ *
114
+ * Encore will generate this error code in the above two mentioned cases.
115
+ */
116
+ ErrCode["Unknown"] = "unknown";
117
+ /**
118
+ * InvalidArgument indicates client specified an invalid argument.
119
+ * Note that this differs from FailedPrecondition. It indicates arguments
120
+ * that are problematic regardless of the state of the system
121
+ * (e.g., a malformed file name).
122
+ *
123
+ * This error code will not be generated by the gRPC framework.
124
+ */
125
+ ErrCode["InvalidArgument"] = "invalid_argument";
126
+ /**
127
+ * DeadlineExceeded means operation expired before completion.
128
+ * For operations that change the state of the system, this error may be
129
+ * returned even if the operation has completed successfully. For
130
+ * example, a successful response from a server could have been delayed
131
+ * long enough for the deadline to expire.
132
+ *
133
+ * The gRPC framework will generate this error code when the deadline is
134
+ * exceeded.
135
+ */
136
+ ErrCode["DeadlineExceeded"] = "deadline_exceeded";
137
+ /**
138
+ * NotFound means some requested entity (e.g., file or directory) was
139
+ * not found.
140
+ *
141
+ * This error code will not be generated by the gRPC framework.
142
+ */
143
+ ErrCode["NotFound"] = "not_found";
144
+ /**
145
+ * AlreadyExists means an attempt to create an entity failed because one
146
+ * already exists.
147
+ *
148
+ * This error code will not be generated by the gRPC framework.
149
+ */
150
+ ErrCode["AlreadyExists"] = "already_exists";
151
+ /**
152
+ * PermissionDenied indicates the caller does not have permission to
153
+ * execute the specified operation. It must not be used for rejections
154
+ * caused by exhausting some resource (use ResourceExhausted
155
+ * instead for those errors). It must not be
156
+ * used if the caller cannot be identified (use Unauthenticated
157
+ * instead for those errors).
158
+ *
159
+ * This error code will not be generated by the gRPC core framework,
160
+ * but expect authentication middleware to use it.
161
+ */
162
+ ErrCode["PermissionDenied"] = "permission_denied";
163
+ /**
164
+ * ResourceExhausted indicates some resource has been exhausted, perhaps
165
+ * a per-user quota, or perhaps the entire file system is out of space.
166
+ *
167
+ * This error code will be generated by the gRPC framework in
168
+ * out-of-memory and server overload situations, or when a message is
169
+ * larger than the configured maximum size.
170
+ */
171
+ ErrCode["ResourceExhausted"] = "resource_exhausted";
172
+ /**
173
+ * FailedPrecondition indicates operation was rejected because the
174
+ * system is not in a state required for the operation's execution.
175
+ * For example, directory to be deleted may be non-empty, an rmdir
176
+ * operation is applied to a non-directory, etc.
177
+ *
178
+ * A litmus test that may help a service implementor in deciding
179
+ * between FailedPrecondition, Aborted, and Unavailable:
180
+ * (a) Use Unavailable if the client can retry just the failing call.
181
+ * (b) Use Aborted if the client should retry at a higher-level
182
+ * (e.g., restarting a read-modify-write sequence).
183
+ * (c) Use FailedPrecondition if the client should not retry until
184
+ * the system state has been explicitly fixed. E.g., if an "rmdir"
185
+ * fails because the directory is non-empty, FailedPrecondition
186
+ * should be returned since the client should not retry unless
187
+ * they have first fixed up the directory by deleting files from it.
188
+ * (d) Use FailedPrecondition if the client performs conditional
189
+ * REST Get/Update/Delete on a resource and the resource on the
190
+ * server does not match the condition. E.g., conflicting
191
+ * read-modify-write on the same resource.
192
+ *
193
+ * This error code will not be generated by the gRPC framework.
194
+ */
195
+ ErrCode["FailedPrecondition"] = "failed_precondition";
196
+ /**
197
+ * Aborted indicates the operation was aborted, typically due to a
198
+ * concurrency issue like sequencer check failures, transaction aborts,
199
+ * etc.
200
+ *
201
+ * See litmus test above for deciding between FailedPrecondition,
202
+ * Aborted, and Unavailable.
203
+ */
204
+ ErrCode["Aborted"] = "aborted";
205
+ /**
206
+ * OutOfRange means operation was attempted past the valid range.
207
+ * E.g., seeking or reading past end of file.
208
+ *
209
+ * Unlike InvalidArgument, this error indicates a problem that may
210
+ * be fixed if the system state changes. For example, a 32-bit file
211
+ * system will generate InvalidArgument if asked to read at an
212
+ * offset that is not in the range [0,2^32-1], but it will generate
213
+ * OutOfRange if asked to read from an offset past the current
214
+ * file size.
215
+ *
216
+ * There is a fair bit of overlap between FailedPrecondition and
217
+ * OutOfRange. We recommend using OutOfRange (the more specific
218
+ * error) when it applies so that callers who are iterating through
219
+ * a space can easily look for an OutOfRange error to detect when
220
+ * they are done.
221
+ *
222
+ * This error code will not be generated by the gRPC framework.
223
+ */
224
+ ErrCode["OutOfRange"] = "out_of_range";
225
+ /**
226
+ * Unimplemented indicates operation is not implemented or not
227
+ * supported/enabled in this service.
228
+ *
229
+ * This error code will be generated by the gRPC framework. Most
230
+ * commonly, you will see this error code when a method implementation
231
+ * is missing on the server. It can also be generated for unknown
232
+ * compression algorithms or a disagreement as to whether an RPC should
233
+ * be streaming.
234
+ */
235
+ ErrCode["Unimplemented"] = "unimplemented";
236
+ /**
237
+ * Internal errors. Means some invariants expected by underlying
238
+ * system has been broken. If you see one of these errors,
239
+ * something is very broken.
240
+ *
241
+ * This error code will be generated by the gRPC framework in several
242
+ * internal error conditions.
243
+ */
244
+ ErrCode["Internal"] = "internal";
245
+ /**
246
+ * Unavailable indicates the service is currently unavailable.
247
+ * This is a most likely a transient condition and may be corrected
248
+ * by retrying with a backoff. Note that it is not always safe to retry
249
+ * non-idempotent operations.
250
+ *
251
+ * See litmus test above for deciding between FailedPrecondition,
252
+ * Aborted, and Unavailable.
253
+ *
254
+ * This error code will be generated by the gRPC framework during
255
+ * abrupt shutdown of a server process or network connection.
256
+ */
257
+ ErrCode["Unavailable"] = "unavailable";
258
+ /**
259
+ * DataLoss indicates unrecoverable data loss or corruption.
260
+ *
261
+ * This error code will not be generated by the gRPC framework.
262
+ */
263
+ ErrCode["DataLoss"] = "data_loss";
264
+ /**
265
+ * Unauthenticated indicates the request does not have valid
266
+ * authentication credentials for the operation.
267
+ *
268
+ * The gRPC framework will generate this error code when the
269
+ * authentication metadata is invalid or a Credentials callback fails,
270
+ * but also expect authentication middleware to generate it.
271
+ */
272
+ ErrCode["Unauthenticated"] = "unauthenticated";
273
+ })(ErrCode || (exports.ErrCode = ErrCode = {}));
274
+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EnB;;;;;;;OAOG;IACH,+CAAoC,CAAA;IAEpC;;;;;;;;;OASG;IACH,iDAAsC,CAAA;IAEtC;;;;;OAKG;IACH,iCAAsB,CAAA;IAEtB;;;;;OAKG;IACH,2CAAgC,CAAA;IAEhC;;;;;;;;;;OAUG;IACH,iDAAsC,CAAA;IAEtC;;;;;;;OAOG;IACH,mDAAwC,CAAA;IAExC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,qDAA0C,CAAA;IAE1C;;;;;;;OAOG;IACH,8BAAmB,CAAA;IAEnB;;;;;;;;;;;;;;;;;;OAkBG;IACH,sCAA2B,CAAA;IAE3B;;;;;;;;;OASG;IACH,0CAA+B,CAAA;IAE/B;;;;;;;OAOG;IACH,gCAAqB,CAAA;IAErB;;;;;;;;;;;OAWG;IACH,sCAA2B,CAAA;IAE3B;;;;OAIG;IACH,iCAAsB,CAAA;IAEtB;;;;;;;OAOG;IACH,8CAAmC,CAAA;AACrC,CAAC,EAjMW,OAAO,uBAAP,OAAO,QAiMlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"camel-to-snake-case.d.ts","sourceRoot":"","sources":["../../src/common/camel-to-snake-case.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,sBAC6B,CAAA"}
1
+ {"version":3,"file":"camel-to-snake-case.d.ts","sourceRoot":"","sources":["../../src/common/camel-to-snake-case.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,WAAM,QACmB,CAAA"}
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.deepCopy = deepCopy;
27
37
  const is_object_1 = require("./is-object");
@@ -1 +1 @@
1
- {"version":3,"file":"deep-copy.js","sourceRoot":"","sources":["../../src/common/deep-copy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAUA,4BA6CC;AAvDD,2CAAsC;AACtC,gDAAiC;AAEjC;;;;;;GAMG;AACH,SAAgB,QAAQ,CAGtB,GAAM,EAAE,KAAK,GAAG,IAAI,OAAO,EAAE;IAC7B,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5C,OAAO,GAAc,CAAA;IACvB,CAAC;IAED,wCAAwC;IACxC,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAY,CAAA;IAClC,CAAC;IAED,IAAI,IAAa,CAAA;IAEjB,gBAAgB;IAChB,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,IAAI,GAAG,EAAwB,CAAA;QAC/B,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,gCAAgC;SACpD;QAAC,GAAkB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC3C,CAAC;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