@codiac.io/codiac-cli 1.2.152 → 1.2.153

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 (93) hide show
  1. package/lib/commands/csp/login.js +1 -1
  2. package/lib/commands/csp/login.js.map +1 -1
  3. package/lib/k8s-command-base.d.ts +15 -25
  4. package/lib/k8s-command-base.js +20 -92
  5. package/lib/k8s-command-base.js.map +1 -1
  6. package/lib/relay/data/aws-regions.d.ts +6 -0
  7. package/lib/relay/data/aws-regions.js +32 -32
  8. package/lib/relay/data/aws-regions.js.map +1 -1
  9. package/lib/uilogic/cloud-resource-configurators/aws-k8s-versions.d.ts +11 -0
  10. package/lib/uilogic/cloud-resource-configurators/aws-k8s-versions.js +14 -13
  11. package/lib/uilogic/cloud-resource-configurators/aws-k8s-versions.js.map +1 -1
  12. package/lib/uilogic/cloud-resource-configurators/aws-node-types.d.ts +1 -33
  13. package/lib/uilogic/cloud-resource-configurators/aws-node-types.js +2 -3712
  14. package/lib/uilogic/cloud-resource-configurators/aws-node-types.js.map +1 -1
  15. package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +2 -1
  16. package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +1 -1
  17. package/oclif.manifest.json +1 -1
  18. package/package.json +2 -2
  19. package/lib/api-clients/common/api-user-creds.d.ts +0 -7
  20. package/lib/api-clients/common/api-user-creds.js +0 -19
  21. package/lib/api-clients/common/api-user-creds.js.map +0 -1
  22. package/lib/api-clients/common/config-loader.d.ts +0 -6
  23. package/lib/api-clients/common/config-loader.js +0 -19
  24. package/lib/api-clients/common/config-loader.js.map +0 -1
  25. package/lib/api-clients/common/security/auth-constants.d.ts +0 -15
  26. package/lib/api-clients/common/security/auth-constants.js +0 -22
  27. package/lib/api-clients/common/security/auth-constants.js.map +0 -1
  28. package/lib/api-clients/common/security/i-auth-client.d.ts +0 -44
  29. package/lib/api-clients/common/security/i-auth-client.js +0 -3
  30. package/lib/api-clients/common/security/i-auth-client.js.map +0 -1
  31. package/lib/api-clients/common/security/rest-client-base-with-auth.d.ts +0 -84
  32. package/lib/api-clients/common/security/rest-client-base-with-auth.js +0 -361
  33. package/lib/api-clients/common/security/rest-client-base-with-auth.js.map +0 -1
  34. package/lib/api-clients/common/security/token-holder.d.ts +0 -13
  35. package/lib/api-clients/common/security/token-holder.js +0 -18
  36. package/lib/api-clients/common/security/token-holder.js.map +0 -1
  37. package/lib/api-clients/common/utils.d.ts +0 -23
  38. package/lib/api-clients/common/utils.js +0 -83
  39. package/lib/api-clients/common/utils.js.map +0 -1
  40. package/lib/api-clients/contracts/index.d.ts +0 -1
  41. package/lib/api-clients/contracts/index.js +0 -5
  42. package/lib/api-clients/contracts/index.js.map +0 -1
  43. package/lib/api-clients/gen/client-config.d.ts +0 -10
  44. package/lib/api-clients/gen/client-config.js +0 -29
  45. package/lib/api-clients/gen/client-config.js.map +0 -1
  46. package/lib/api-clients/gen/client.d.ts +0 -45
  47. package/lib/api-clients/gen/client.js +0 -331
  48. package/lib/api-clients/gen/client.js.map +0 -1
  49. package/lib/api-clients/gen/contracts.d.ts +0 -2529
  50. package/lib/api-clients/gen/contracts.js +0 -370
  51. package/lib/api-clients/gen/contracts.js.map +0 -1
  52. package/lib/api-clients/gen/endpoints.d.ts +0 -3
  53. package/lib/api-clients/gen/endpoints.js +0 -3150
  54. package/lib/api-clients/gen/endpoints.js.map +0 -1
  55. package/lib/api-clients/index.d.ts +0 -2
  56. package/lib/api-clients/index.js +0 -6
  57. package/lib/api-clients/index.js.map +0 -1
  58. package/lib/apis/codiac-api/common/security/rest-client-base-with-auth.d.ts +0 -84
  59. package/lib/apis/codiac-api/common/security/rest-client-base-with-auth.js +0 -361
  60. package/lib/apis/codiac-api/common/security/rest-client-base-with-auth.js.map +0 -1
  61. package/lib/apis/codiac-api/gen/endpoints.d.ts +0 -3
  62. package/lib/apis/codiac-api/gen/endpoints.js +0 -3150
  63. package/lib/apis/codiac-api/gen/endpoints.js.map +0 -1
  64. package/lib/apis/over-gen/temp-mods.d.ts +0 -33
  65. package/lib/apis/over-gen/temp-mods.js +0 -91
  66. package/lib/apis/over-gen/temp-mods.js.map +0 -1
  67. package/lib/relay/wsclient/bus-listener.ervice.d.ts +0 -71
  68. package/lib/relay/wsclient/bus-listener.ervice.js +0 -150
  69. package/lib/relay/wsclient/bus-listener.ervice.js.map +0 -1
  70. package/lib/uilogic/enterprise-contextualizer-machine-scope.d.ts +0 -69
  71. package/lib/uilogic/enterprise-contextualizer-machine-scope.js +0 -596
  72. package/lib/uilogic/enterprise-contextualizer-machine-scope.js.map +0 -1
  73. package/lib/uilogic/registry-configurator-factory.d.ts +0 -12
  74. package/lib/uilogic/registry-configurator-factory.js +0 -68
  75. package/lib/uilogic/registry-configurator-factory.js.map +0 -1
  76. package/lib/uilogic/registry-configurator.d.ts +0 -17
  77. package/lib/uilogic/registry-configurator.js +0 -145
  78. package/lib/uilogic/registry-configurator.js.map +0 -1
  79. package/lib/uilogic/registry-configurators/aws-registry-configurator.d.ts +0 -15
  80. package/lib/uilogic/registry-configurators/aws-registry-configurator.js +0 -67
  81. package/lib/uilogic/registry-configurators/aws-registry-configurator.js.map +0 -1
  82. package/lib/uilogic/registry-configurators/azure-registry-configurator.d.ts +0 -25
  83. package/lib/uilogic/registry-configurators/azure-registry-configurator.js +0 -72
  84. package/lib/uilogic/registry-configurators/azure-registry-configurator.js.map +0 -1
  85. package/lib/uilogic/registry-configurators/docker-hub-registry-configurator.d.ts +0 -18
  86. package/lib/uilogic/registry-configurators/docker-hub-registry-configurator.js +0 -55
  87. package/lib/uilogic/registry-configurators/docker-hub-registry-configurator.js.map +0 -1
  88. package/lib/uilogic/registry-configurators/helm-registry-configurator.d.ts +0 -16
  89. package/lib/uilogic/registry-configurators/helm-registry-configurator.js +0 -44
  90. package/lib/uilogic/registry-configurators/helm-registry-configurator.js.map +0 -1
  91. package/lib/uilogic/registry-configurators/unsupported-registry-configurator.d.ts +0 -17
  92. package/lib/uilogic/registry-configurators/unsupported-registry-configurator.js +0 -60
  93. package/lib/uilogic/registry-configurators/unsupported-registry-configurator.js.map +0 -1
@@ -1,10 +0,0 @@
1
- /** The in-memory representation of the api client config file.
2
- */
3
- export declare class CodiacClientConfig {
4
- static readonly CONFIG_PATH: string;
5
- static readonly CONFIG_FILENAME = "config.json";
6
- private static loader;
7
- static load(): CodiacClientConfig | undefined;
8
- constructor();
9
- apiBaseUrl: string | undefined;
10
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var CodiacClientConfig_1;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CodiacClientConfig = void 0;
5
- const tslib_1 = require("tslib");
6
- const os = require("os");
7
- const path = require("path");
8
- const inversify_1 = require("inversify");
9
- const config_loader_1 = require("../common/config-loader");
10
- /** The in-memory representation of the api client config file.
11
- */
12
- let CodiacClientConfig = CodiacClientConfig_1 = class CodiacClientConfig {
13
- constructor() {
14
- }
15
- static load() {
16
- const os = require('os');
17
- let cfg = this.loader.load(); // yeah this is real helpful - maybe we should just accept the .loader.load() syntax and expose the loader itself?
18
- return cfg;
19
- }
20
- };
21
- CodiacClientConfig.CONFIG_PATH = path.posix.join(os.homedir(), `.config`, `codiac-api-client`);
22
- CodiacClientConfig.CONFIG_FILENAME = "config.json";
23
- CodiacClientConfig.loader = new config_loader_1.ConfigLoader(CodiacClientConfig_1.CONFIG_PATH, CodiacClientConfig_1.CONFIG_FILENAME);
24
- CodiacClientConfig = CodiacClientConfig_1 = tslib_1.__decorate([
25
- (0, inversify_1.injectable)(),
26
- tslib_1.__metadata("design:paramtypes", [])
27
- ], CodiacClientConfig);
28
- exports.CodiacClientConfig = CodiacClientConfig;
29
- //# sourceMappingURL=client-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-config.js","sourceRoot":"","sources":["../../../src/api-clients/gen/client-config.ts"],"names":[],"mappings":";;;;;AAAA,yBAAyB;AACzB,6BAA6B;AAC7B,yCAAuC;AACvC,2DAAuD;AAGvD;GACG;AAEI,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAY7B;IAEA,CAAC;IATD,MAAM,CAAC,IAAI;QACT,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAEzB,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAE,kHAAkH;QACjJ,OAAO,GAAG,CAAC;IACb,CAAC;;AATsB,8BAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,mBAAmB,CAAC,CAAC;AAC5E,kCAAe,GAAG,aAAa,CAAC;AACxC,yBAAM,GAAG,IAAI,4BAAY,CAAqB,oBAAkB,CAAC,WAAW,EAAE,oBAAkB,CAAC,eAAe,CAAC,CAAA;AAHrH,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;;GACA,kBAAkB,CAgB9B;AAhBY,gDAAkB"}
@@ -1,45 +0,0 @@
1
- import { IBetterLogger } from "@codiac.io/codiac-common/IBetterLogger";
2
- import { ApiUserCreds } from "../common/api-user-creds";
3
- import { RestClientBaseWithAuth } from "../common/security/rest-client-base-with-auth";
4
- import { CodiacClientConfig } from "./client-config";
5
- export declare class CodiacClient extends RestClientBaseWithAuth {
6
- static bootstrap(logger?: IBetterLogger): void;
7
- static DEFAULT_API_URL: string;
8
- /** Hardcoded to match the current setting on the server.
9
- * TODO: Get this from a config that is copied from the server proiject to the client project on build.
10
- */
11
- /** This factory method is just for convenience and hasty backward compatibility with consumers not using ioc. */
12
- static create(logger: IBetterLogger, apiRootUrl?: string, authToken?: string): CodiacClient;
13
- /** Local interface for the remote api.
14
- * @param settings (optional) configuration (ie: apiRootUrl) to use for the client. If not provided settings will be loaded from the config file on the local machine.
15
- *
16
- */
17
- constructor(logger: IBetterLogger, settings?: CodiacClientConfig, credentials?: ApiUserCreds);
18
- protected GetDefaultRootUrl(): string;
19
- }
20
- import { IRepoOptions, IDomainEntity, classDef } from "@codiac.io/codiac-common";
21
- import * as contracts from "@codiac.io/codiac-common/contracts";
22
- export interface IThrowingRepoOptions extends IRepoOptions {
23
- throwNotFound?: boolean;
24
- }
25
- /** HACK: This class exists ONLY because the client does not implement IRepo, so we cannot use ThrowingRepoWrapper.
26
- * because the client needs criteriaType argument on tryReadMany, tryPatchWhere, and tryDeleteWhere.
27
- *
28
- * Wraps repo methods to throw on error or when unsuccessful.
29
- * EXCEPT read, which can return undefined when none found
30
- * and readMany which can return an empty array when none found.
31
- */
32
- export declare class ThrowingCodiacClient {
33
- repo: CodiacClient;
34
- constructor(repo: CodiacClient);
35
- create<T extends IDomainEntity>(entityType: classDef<T>, entity: T, options?: IRepoOptions): Promise<T>;
36
- createMany<T extends IDomainEntity>(entityType: classDef<T>, entities: T[], options?: IRepoOptions): Promise<T[]>;
37
- read<T extends IDomainEntity>(entityType: classDef<T>, idSpec: contracts.IdSpec, options?: IThrowingRepoOptions): Promise<T | undefined>;
38
- readMany<T extends IDomainEntity, TCriteria extends contracts.ICriteria<T>>(entityType: classDef<T>, criteriaType: classDef<contracts.ICriteria<T>>, criteria: TCriteria, options?: IThrowingRepoOptions): Promise<T[]>;
39
- update<T extends IDomainEntity>(entityType: classDef<T>, entity: T, options?: IRepoOptions): Promise<T>;
40
- updateMany<T extends IDomainEntity>(entityType: classDef<T>, entities: T[], options?: IRepoOptions): Promise<T[]>;
41
- patch<T extends IDomainEntity>(entityType: classDef<T>, operations: contracts.PatchSpecForOne<T>, options?: IRepoOptions): Promise<T>;
42
- patchWhere<T extends IDomainEntity, TCriteria extends contracts.ICriteria<T>>(entityType: classDef<T>, criteriaType: classDef<contracts.ICriteria<T>>, operations: contracts.PatchSpecForMany<T, TCriteria>, options?: IRepoOptions): Promise<T[]>;
43
- delete<T extends IDomainEntity>(entityType: classDef<T>, idSpec: contracts.IdSpec, options?: IRepoOptions): Promise<T>;
44
- deleteWhere<T extends IDomainEntity>(entityType: classDef<T>, criteriaType: classDef<contracts.ICriteria<T>>, criteria: contracts.ICriteria<T>, options?: IRepoOptions): Promise<T[]>;
45
- }
@@ -1,331 +0,0 @@
1
- "use strict";
2
- var CodiacClient_1;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ThrowingCodiacClient = exports.CodiacClient = void 0;
5
- const tslib_1 = require("tslib");
6
- const inversify_1 = require("inversify");
7
- const codiac_common_1 = require("@codiac.io/codiac-common");
8
- const api_user_creds_1 = require("../common/api-user-creds");
9
- const rest_client_base_with_auth_1 = require("../common/security/rest-client-base-with-auth");
10
- const endpoints_1 = require("./endpoints");
11
- const client_config_1 = require("./client-config");
12
- // export interface IEndpointSpec {
13
- // entityType: typeRef; // this requires that TRequest extends Object. It prob should. Not sure where that breaks down - what is the scenario that we are passing in a contract that doesnt extend Object?
14
- // httpMethod: httpRestVerb;
15
- // route: string;
16
- // serializerMap?: stringDictionary;
17
- // }
18
- let CodiacClient = CodiacClient_1 = class CodiacClient extends rest_client_base_with_auth_1.RestClientBaseWithAuth /* implements IRepo */ {
19
- /** Local interface for the remote api.
20
- * @param settings (optional) configuration (ie: apiRootUrl) to use for the client. If not provided settings will be loaded from the config file on the local machine.
21
- *
22
- */
23
- constructor(logger, settings, credentials) {
24
- let ultimateSettings = settings !== null && settings !== void 0 ? settings : client_config_1.CodiacClientConfig.load(); // load up default settings if not specified
25
- super(logger, ultimateSettings === null || ultimateSettings === void 0 ? void 0 : ultimateSettings.apiBaseUrl, credentials === null || credentials === void 0 ? void 0 : credentials.apiToken);
26
- }
27
- static bootstrap(logger) {
28
- this.bootstrap_base(endpoints_1.Endpoints.list);
29
- }
30
- /** Hardcoded to match the current setting on the server.
31
- * TODO: Get this from a config that is copied from the server proiject to the client project on build.
32
- */
33
- /** This factory method is just for convenience and hasty backward compatibility with consumers not using ioc. */
34
- static create(logger, apiRootUrl, authToken) {
35
- return new CodiacClient_1(logger, { apiBaseUrl: apiRootUrl }, (authToken) ? { apiToken: authToken } : undefined);
36
- }
37
- GetDefaultRootUrl() {
38
- return CodiacClient_1.DEFAULT_API_URL;
39
- }
40
- };
41
- CodiacClient.DEFAULT_API_URL = "https://api.codiac.io";
42
- CodiacClient = CodiacClient_1 = tslib_1.__decorate([
43
- (0, inversify_1.injectable)(),
44
- tslib_1.__param(0, (0, inversify_1.inject)(codiac_common_1.INTERFACES.IBetterLogger)),
45
- tslib_1.__param(1, (0, inversify_1.inject)(client_config_1.CodiacClientConfig)),
46
- tslib_1.__param(2, (0, inversify_1.inject)(api_user_creds_1.ApiUserCreds)),
47
- tslib_1.__metadata("design:paramtypes", [Object, client_config_1.CodiacClientConfig,
48
- api_user_creds_1.ApiUserCreds])
49
- ], CodiacClient);
50
- exports.CodiacClient = CodiacClient;
51
- /** HACK: This class exists ONLY because the client does not implement IRepo, so we cannot use ThrowingRepoWrapper.
52
- * because the client needs criteriaType argument on tryReadMany, tryPatchWhere, and tryDeleteWhere.
53
- *
54
- * Wraps repo methods to throw on error or when unsuccessful.
55
- * EXCEPT read, which can return undefined when none found
56
- * and readMany which can return an empty array when none found.
57
- */
58
- let ThrowingCodiacClient = class ThrowingCodiacClient /* implements IThrowingRepo */ {
59
- constructor(repo) {
60
- this.repo = repo;
61
- }
62
- // startTransaction(): Promise<void> { return this.repo.startTransaction(); }
63
- // commit(): Promise<void> { return this.repo.commit(); }
64
- // rollback(): Promise<void> { return this.repo.rollback(); }
65
- create(entityType, entity, options) {
66
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
67
- try {
68
- let result = yield this.repo.tryCreate(entityType, entity, options);
69
- if (result.error) {
70
- throw result.error;
71
- }
72
- else if (result.success == false || result.output == undefined) {
73
- throw new Error(`Create ${entityType.name} failed without error. ${result.message || ""}`);
74
- }
75
- resolve(result.output);
76
- }
77
- catch (err) {
78
- reject(err);
79
- }
80
- }));
81
- }
82
- createMany(entityType, entities, options) {
83
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
84
- var _a;
85
- try {
86
- let result = yield this.repo.tryCreateMany(entityType, entities, options);
87
- if (result.error) {
88
- throw result.error;
89
- }
90
- else if (result.failures && result.failures.length > 0) {
91
- let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
92
- throw new Error(`CreateMany ${entityType.name} incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
93
- }
94
- else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
95
- throw new Error(`CreateMany ${entityType.name} failed without error. ${result.message || ""}`);
96
- }
97
- resolve(result.successes);
98
- }
99
- catch (err) {
100
- reject(err);
101
- }
102
- }));
103
- }
104
- read(entityType, idSpec, options) {
105
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
106
- try {
107
- let result = yield this.repo.tryRead(entityType, idSpec, options);
108
- if (result.error) {
109
- throw result.error;
110
- }
111
- else if (result.output == undefined && (options === null || options === void 0 ? void 0 : options.throwNotFound) == true) {
112
- throw new Error(`No ${entityType.name} found.`);
113
- }
114
- resolve(result.output);
115
- }
116
- catch (err) {
117
- reject(err);
118
- }
119
- }));
120
- }
121
- readMany(entityType, criteriaType, criteria, options) {
122
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
123
- try {
124
- let result = yield this.repo.tryReadMany(entityType, criteriaType, criteria, options);
125
- if (result.error) {
126
- throw result.error;
127
- }
128
- else if ((result.output == undefined || result.output.length == 0) && (options === null || options === void 0 ? void 0 : options.throwNotFound) == true) {
129
- throw new Error(`No ${entityType.name} found.`);
130
- }
131
- resolve(result.output || []);
132
- }
133
- catch (err) {
134
- reject(err);
135
- }
136
- }));
137
- }
138
- update(entityType, entity, options) {
139
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
140
- try {
141
- let result = yield this.repo.tryUpdate(entityType, entity, options);
142
- if (result.error) {
143
- throw result.error;
144
- }
145
- else if (result.success == false || result.output == undefined) {
146
- throw new Error(`Update ${entityType.name} failed without error. ${result.message || ""}`);
147
- }
148
- resolve(result.output);
149
- }
150
- catch (err) {
151
- reject(err);
152
- }
153
- }));
154
- }
155
- updateMany(entityType, entities, options) {
156
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
157
- var _a;
158
- try {
159
- let result = yield this.repo.tryUpdateMany(entityType, entities, options);
160
- if (result.error) {
161
- throw result.error;
162
- }
163
- else if (result.failures && result.failures.length > 0) {
164
- let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
165
- throw new Error(`UpdateMany ${entityType.name} incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
166
- }
167
- else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
168
- throw new Error(`UpdateMany ${entityType.name} failed without error. ${result.message || ""}`);
169
- }
170
- resolve(result.successes);
171
- }
172
- catch (err) {
173
- reject(err);
174
- }
175
- }));
176
- }
177
- // upsert<T extends IDomainEntity>(entityType: classDef<T>, entity: T, options?: IRepoOptions): Promise<T> {
178
- // return new Promise<T>(async (resolve, reject) => {
179
- // try {
180
- // let result = await this.repo.tryUpsert(entityType, entity, options);
181
- // if (result.error) {
182
- // throw result.error;
183
- // } else if (result.success == false || result.output == undefined) {
184
- // throw new Error(`Upsert failed without error. ${result.message || ""}`);
185
- // }
186
- // resolve(result.output);
187
- // } catch (err) {
188
- // reject(err);
189
- // }
190
- // });
191
- // }
192
- // upsertMany<T extends IDomainEntity>(entityType: classDef<T>, entities: T[], options?: IRepoOptions): Promise<T[]> {
193
- // return new Promise<T[]>(async (resolve, reject) => {
194
- // try {
195
- // let result = await this.repo.tryUpsertMany(entityType, entities, options);
196
- // if (result.error) {
197
- // throw result.error;
198
- // } else if (result.failures && result.failures.length > 0) {
199
- // let messageList = result.failures.map(f => `${f.message || ""} ${f.error?.message || ""}`).join("\n");
200
- // throw new Error(`UpsertMany incurred ${result.failures.length} failures (among ${result.successes?.length || 0} successes). ${result.message || ""}.\n ${messageList}`);
201
- // } else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
202
- // throw new Error(`UpsertMany failed without error. ${result.message || ""}`);
203
- // }
204
- // resolve(result.successes);
205
- // } catch (err) {
206
- // reject(err);
207
- // }
208
- // });
209
- // }
210
- // updatePartial<T extends IDomainEntity>(entityType: classDef<T>, entity: Partial<T>, options?: IRepoOptions): Promise<Partial<T>> {
211
- // return new Promise<Partial<T>>(async (resolve, reject) => {
212
- // try {
213
- // let operations = this.createPatchSpec(entity);
214
- // let result = await this.repo.tryPatch(entityType, operations, options);
215
- // if (result.error) {
216
- // throw result.error;
217
- // } else if (result.success == false || result.output == undefined) {
218
- // throw new Error(`UpdatePartial failed without error. ${result.message || ""}`);
219
- // }
220
- // resolve(result.output);
221
- // } catch (err) {
222
- // reject(err);
223
- // }
224
- // });
225
- // }
226
- // updateManyPartial<T extends IDomainEntity>(entityType: classDef<T>, partials: Partial<T>[], options?: IRepoOptions): Promise<Partial<T>[]> {
227
- // return new Promise<Partial<T>[]>(async (resolve, reject) => {
228
- // try {
229
- // let criteriaType = /* how do we get this? */;
230
- // let operations = this.createPatchSpecForMany(partials);
231
- // let result = await this.repo.tryPatchWhere(entityType, criteriaType, operations, options);
232
- // if (result.error) {
233
- // throw result.error;
234
- // } else if (result.failures && result.failures.length > 0) {
235
- // let messageList = result.failures.map(f => `${f.message || ""} ${f.error?.message || ""}`).join("\n");
236
- // throw new Error(`UpdateManyPartial incurred ${result.failures.length} failures (among ${result.successes?.length || 0} successes). ${result.message || ""}.\n ${messageList}`);
237
- // } else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
238
- // throw new Error(`UpdateManyPartial failed without error. ${result.message || ""}`);
239
- // }
240
- // resolve(result.successes);
241
- // } catch (err) {
242
- // reject(err);
243
- // }
244
- // });
245
- // }
246
- patch(entityType, operations, options) {
247
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
248
- try {
249
- let result = yield this.repo.tryPatch(entityType, operations, options);
250
- if (result.error) {
251
- throw result.error;
252
- }
253
- else if (result.success == false || result.output == undefined) {
254
- throw new Error(`UpdatePartial ${entityType.name} failed without error. ${result.message || ""}`);
255
- }
256
- resolve(result.output);
257
- }
258
- catch (err) {
259
- reject(err);
260
- }
261
- }));
262
- }
263
- patchWhere(entityType, criteriaType, operations, options) {
264
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
265
- var _a;
266
- try {
267
- let result = yield this.repo.tryPatchWhere(entityType, criteriaType, operations, options);
268
- if (result.error) {
269
- throw result.error;
270
- }
271
- else if (result.failures && result.failures.length > 0) {
272
- let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
273
- throw new Error(`${entityType.name} PatchWhere incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
274
- }
275
- else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
276
- throw new Error(`${entityType.name} PatchWhere failed without error. ${result.message || ""}`);
277
- }
278
- resolve(result.successes);
279
- }
280
- catch (err) {
281
- reject(err);
282
- }
283
- }));
284
- }
285
- delete(entityType, idSpec, options) {
286
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
287
- try {
288
- let result = yield this.repo.tryDelete(entityType, idSpec, options);
289
- if (result.error) {
290
- throw result.error;
291
- }
292
- else if (result.success == false || result.output == undefined) {
293
- throw new Error(`Delete ${entityType.name} failed without error. ${result.message || ""}`);
294
- }
295
- resolve(result.output);
296
- }
297
- catch (err) {
298
- reject(err);
299
- }
300
- }));
301
- }
302
- deleteWhere(entityType, criteriaType, criteria, options) {
303
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
304
- var _a;
305
- try {
306
- let result = yield this.repo.tryDeleteWhere(entityType, criteriaType, criteria, options);
307
- if (result.error) {
308
- throw result.error;
309
- }
310
- else if (result.failures && result.failures.length > 0) {
311
- let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
312
- throw new Error(`${entityType.name} DeleteWhere incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
313
- }
314
- else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
315
- throw new Error(`${entityType.name} DeleteWhere failed without error. ${result.message || ""}`);
316
- }
317
- resolve(result.successes);
318
- }
319
- catch (err) {
320
- reject(err);
321
- }
322
- }));
323
- }
324
- };
325
- ThrowingCodiacClient = tslib_1.__decorate([
326
- (0, inversify_1.injectable)(),
327
- tslib_1.__param(0, (0, inversify_1.inject)(CodiacClient)),
328
- tslib_1.__metadata("design:paramtypes", [CodiacClient])
329
- ], ThrowingCodiacClient);
330
- exports.ThrowingCodiacClient = ThrowingCodiacClient;
331
- //# sourceMappingURL=client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/api-clients/gen/client.ts"],"names":[],"mappings":";;;;;AAAA,yCAA+C;AAC/C,4DAAsD;AAGtD,6DAAwD;AACxD,8FAAuF;AACvF,2CAAwC;AACxC,mDAAqD;AAErD,mCAAmC;AACnC,gNAAgN;AAChN,8BAA8B;AAC9B,mBAAmB;AACnB,sCAAsC;AACtC,IAAI;AAKG,IAAM,YAAY,oBAAlB,MAAM,YAAa,SAAQ,mDAAsB,CAAC,sBAAsB;IAoB7E;;;OAGG;IACH,YAA8C,MAAqB,EAA8B,QAA6B,EACtG,WAA0B;QAChD,IAAI,gBAAgB,GAAG,QAAQ,aAAR,QAA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