@approvio/api 0.0.42 → 0.0.43

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.
@@ -1,4 +1,4 @@
1
- import { a as Workflow, d as UserSummary, f as ListGroups200Response, h as GroupInfo, i as ListWorkflows200Response, m as Group, n as User, p as Pagination, r as TokenResponse, t as WorkflowCreate } from "../workflow-create-COE72Khd.cjs";
1
+ import { a as Workflow, d as UserSummary, f as ListGroups200Response, h as GroupInfo, i as ListWorkflows200Response, m as Group, n as User, p as Pagination, r as TokenResponse, t as WorkflowCreate } from "../workflow-create-DJP5QYfz.cjs";
2
2
 
3
3
  //#region mocks/user.fixtures.d.ts
4
4
  declare const MOCK_USER_ID = "e6e08687-2189-4710-91b5-479cd25a9119";
@@ -1,4 +1,4 @@
1
- import { a as Workflow, d as UserSummary, f as ListGroups200Response, h as GroupInfo, i as ListWorkflows200Response, m as Group, n as User, p as Pagination, r as TokenResponse, t as WorkflowCreate } from "../workflow-create-D4c1cIa_.mjs";
1
+ import { a as Workflow, d as UserSummary, f as ListGroups200Response, h as GroupInfo, i as ListWorkflows200Response, m as Group, n as User, p as Pagination, r as TokenResponse, t as WorkflowCreate } from "../workflow-create-uX4n87mS.mjs";
2
2
 
3
3
  //#region mocks/user.fixtures.d.ts
4
4
  declare const MOCK_USER_ID = "e6e08687-2189-4710-91b5-479cd25a9119";
@@ -50,7 +50,11 @@ let GlobalQuota;
50
50
  (function(_GlobalQuota) {
51
51
  _GlobalQuota.QuotaTypeEnum = {
52
52
  MaxGroups: "MAX_GROUPS",
53
- MaxSpaces: "MAX_SPACES"
53
+ MaxSpaces: "MAX_SPACES",
54
+ MaxRolesPerUser: "MAX_ROLES_PER_USER",
55
+ MaxEntitiesPerGroup: "MAX_ENTITIES_PER_GROUP",
56
+ MaxTemplates: "MAX_TEMPLATES",
57
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS"
54
58
  };
55
59
  _GlobalQuota.ScopeEnum = { Global: "GLOBAL" };
56
60
  })(GlobalQuota || (GlobalQuota = {}));
@@ -61,7 +65,11 @@ let GlobalQuotaBase;
61
65
  _GlobalQuotaBase.ScopeEnum = { Global: "GLOBAL" };
62
66
  _GlobalQuotaBase.QuotaTypeEnum = {
63
67
  MaxGroups: "MAX_GROUPS",
64
- MaxSpaces: "MAX_SPACES"
68
+ MaxSpaces: "MAX_SPACES",
69
+ MaxRolesPerUser: "MAX_ROLES_PER_USER",
70
+ MaxEntitiesPerGroup: "MAX_ENTITIES_PER_GROUP",
71
+ MaxTemplates: "MAX_TEMPLATES",
72
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS"
65
73
  };
66
74
  })(GlobalQuotaBase || (GlobalQuotaBase = {}));
67
75
  //#endregion
@@ -70,7 +78,11 @@ let GlobalQuotaCreate;
70
78
  (function(_GlobalQuotaCreate) {
71
79
  _GlobalQuotaCreate.QuotaTypeEnum = {
72
80
  MaxGroups: "MAX_GROUPS",
73
- MaxSpaces: "MAX_SPACES"
81
+ MaxSpaces: "MAX_SPACES",
82
+ MaxRolesPerUser: "MAX_ROLES_PER_USER",
83
+ MaxEntitiesPerGroup: "MAX_ENTITIES_PER_GROUP",
84
+ MaxTemplates: "MAX_TEMPLATES",
85
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS"
74
86
  };
75
87
  _GlobalQuotaCreate.ScopeEnum = { Global: "GLOBAL" };
76
88
  })(GlobalQuotaCreate || (GlobalQuotaCreate = {}));
@@ -144,7 +156,6 @@ let OrgScope;
144
156
  const QuotaScope = {
145
157
  Global: "GLOBAL",
146
158
  Space: "SPACE",
147
- User: "USER",
148
159
  Group: "GROUP",
149
160
  Template: "TEMPLATE"
150
161
  };
@@ -162,7 +173,10 @@ const QuotaType = {
162
173
  //#region generated/openapi/model/space-quota.ts
163
174
  let SpaceQuota;
164
175
  (function(_SpaceQuota) {
165
- _SpaceQuota.QuotaTypeEnum = { MaxTemplates: "MAX_TEMPLATES" };
176
+ _SpaceQuota.QuotaTypeEnum = {
177
+ MaxTemplates: "MAX_TEMPLATES",
178
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS"
179
+ };
166
180
  _SpaceQuota.ScopeEnum = { Space: "SPACE" };
167
181
  })(SpaceQuota || (SpaceQuota = {}));
168
182
  //#endregion
@@ -170,13 +184,19 @@ let SpaceQuota;
170
184
  let SpaceQuotaBase;
171
185
  (function(_SpaceQuotaBase) {
172
186
  _SpaceQuotaBase.ScopeEnum = { Space: "SPACE" };
173
- _SpaceQuotaBase.QuotaTypeEnum = { MaxTemplates: "MAX_TEMPLATES" };
187
+ _SpaceQuotaBase.QuotaTypeEnum = {
188
+ MaxTemplates: "MAX_TEMPLATES",
189
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS"
190
+ };
174
191
  })(SpaceQuotaBase || (SpaceQuotaBase = {}));
175
192
  //#endregion
176
193
  //#region generated/openapi/model/space-quota-create.ts
177
194
  let SpaceQuotaCreate;
178
195
  (function(_SpaceQuotaCreate) {
179
- _SpaceQuotaCreate.QuotaTypeEnum = { MaxTemplates: "MAX_TEMPLATES" };
196
+ _SpaceQuotaCreate.QuotaTypeEnum = {
197
+ MaxTemplates: "MAX_TEMPLATES",
198
+ MaxConcurrentWorkflows: "MAX_CONCURRENT_WORKFLOWS"
199
+ };
180
200
  _SpaceQuotaCreate.ScopeEnum = { Space: "SPACE" };
181
201
  })(SpaceQuotaCreate || (SpaceQuotaCreate = {}));
182
202
  //#endregion
@@ -207,27 +227,6 @@ let TemplateQuotaCreate;
207
227
  _TemplateQuotaCreate.ScopeEnum = { Template: "TEMPLATE" };
208
228
  })(TemplateQuotaCreate || (TemplateQuotaCreate = {}));
209
229
  //#endregion
210
- //#region generated/openapi/model/user-quota.ts
211
- let UserQuota;
212
- (function(_UserQuota) {
213
- _UserQuota.QuotaTypeEnum = { MaxRolesPerUser: "MAX_ROLES_PER_USER" };
214
- _UserQuota.ScopeEnum = { User: "USER" };
215
- })(UserQuota || (UserQuota = {}));
216
- //#endregion
217
- //#region generated/openapi/model/user-quota-base.ts
218
- let UserQuotaBase;
219
- (function(_UserQuotaBase) {
220
- _UserQuotaBase.ScopeEnum = { User: "USER" };
221
- _UserQuotaBase.QuotaTypeEnum = { MaxRolesPerUser: "MAX_ROLES_PER_USER" };
222
- })(UserQuotaBase || (UserQuotaBase = {}));
223
- //#endregion
224
- //#region generated/openapi/model/user-quota-create.ts
225
- let UserQuotaCreate;
226
- (function(_UserQuotaCreate) {
227
- _UserQuotaCreate.QuotaTypeEnum = { MaxRolesPerUser: "MAX_ROLES_PER_USER" };
228
- _UserQuotaCreate.ScopeEnum = { User: "USER" };
229
- })(UserQuotaCreate || (UserQuotaCreate = {}));
230
- //#endregion
231
230
  //#region generated/openapi/model/vote-approve.ts
232
231
  let VoteApprove;
233
232
  (function(_VoteApprove) {
@@ -1717,7 +1716,7 @@ function validateQuotaCreate(object) {
1717
1716
  const quotaType = getStringAsEnum(quotaTypeStr, QuotaType);
1718
1717
  if (!quotaType) return (0, fp_ts_Either.left)("invalid_quotaType");
1719
1718
  if (scope === "GLOBAL") {
1720
- if (quotaType !== "MAX_GROUPS" && quotaType !== "MAX_SPACES") return (0, fp_ts_Either.left)("invalid_scope_quotaType_combination");
1719
+ if (quotaType !== "MAX_GROUPS" && quotaType !== "MAX_SPACES" && quotaType !== "MAX_ROLES_PER_USER" && quotaType !== "MAX_ENTITIES_PER_GROUP" && quotaType !== "MAX_TEMPLATES" && quotaType !== "MAX_CONCURRENT_WORKFLOWS") return (0, fp_ts_Either.left)("invalid_scope_quotaType_combination");
1721
1720
  if (hasOwnProperty(object, "targetId") && object.targetId !== void 0) return (0, fp_ts_Either.left)("invalid_scope_targetId_combination");
1722
1721
  return (0, fp_ts_Either.right)({
1723
1722
  limit,
@@ -1745,17 +1744,8 @@ function validateQuotaCreate(object) {
1745
1744
  targetId: object.targetId
1746
1745
  });
1747
1746
  }
1748
- if (scope === "USER") {
1749
- if (quotaType !== "MAX_ROLES_PER_USER") return (0, fp_ts_Either.left)("invalid_scope_quotaType_combination");
1750
- return (0, fp_ts_Either.right)({
1751
- limit,
1752
- scope,
1753
- quotaType,
1754
- targetId: object.targetId
1755
- });
1756
- }
1757
1747
  if (scope === "SPACE") {
1758
- if (quotaType !== "MAX_TEMPLATES") return (0, fp_ts_Either.left)("invalid_scope_quotaType_combination");
1748
+ if (quotaType !== "MAX_TEMPLATES" && quotaType !== "MAX_CONCURRENT_WORKFLOWS") return (0, fp_ts_Either.left)("invalid_scope_quotaType_combination");
1759
1749
  return (0, fp_ts_Either.right)({
1760
1750
  limit,
1761
1751
  scope,
@@ -1908,24 +1898,6 @@ Object.defineProperty(exports, "TemplateQuotaCreate", {
1908
1898
  return TemplateQuotaCreate;
1909
1899
  }
1910
1900
  });
1911
- Object.defineProperty(exports, "UserQuota", {
1912
- enumerable: true,
1913
- get: function() {
1914
- return UserQuota;
1915
- }
1916
- });
1917
- Object.defineProperty(exports, "UserQuotaBase", {
1918
- enumerable: true,
1919
- get: function() {
1920
- return UserQuotaBase;
1921
- }
1922
- });
1923
- Object.defineProperty(exports, "UserQuotaCreate", {
1924
- enumerable: true,
1925
- get: function() {
1926
- return UserQuotaCreate;
1927
- }
1928
- });
1929
1901
  Object.defineProperty(exports, "VoteApprove", {
1930
1902
  enumerable: true,
1931
1903
  get: function() {