@buildery/ts-api-kit 5.0.2 → 5.0.4

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 (116) hide show
  1. package/dist/Api.d.ts +5 -5
  2. package/dist/Api.js +2 -2
  3. package/dist/Api.js.map +1 -1
  4. package/dist/ApiConfigs.d.ts +11 -4
  5. package/dist/ApiConfigs.js +10 -0
  6. package/dist/ApiConfigs.js.map +1 -1
  7. package/dist/features/api/abstract/AbstractApi.d.ts +1 -1
  8. package/dist/features/api/abstract/AbstractApi.js +4 -4
  9. package/dist/features/api/abstract/AbstractApi.js.map +1 -1
  10. package/dist/features/api/abstract/index.d.ts +1 -0
  11. package/dist/features/api/abstract/index.js +18 -0
  12. package/dist/features/api/abstract/index.js.map +1 -0
  13. package/dist/features/api/config/RawApi.d.ts +34 -0
  14. package/dist/features/api/config/RawApi.js +41 -0
  15. package/dist/features/api/config/RawApi.js.map +1 -0
  16. package/dist/features/api/config/index.d.ts +1 -0
  17. package/dist/features/api/config/index.js +18 -0
  18. package/dist/features/api/config/index.js.map +1 -0
  19. package/dist/features/api/index.d.ts +2 -0
  20. package/dist/features/api/index.js +19 -0
  21. package/dist/features/api/index.js.map +1 -0
  22. package/dist/features/auth/index.d.ts +0 -1
  23. package/dist/features/auth/index.js +0 -1
  24. package/dist/features/auth/index.js.map +1 -1
  25. package/dist/features/auth/services/AuthService.js +4 -2
  26. package/dist/features/auth/services/AuthService.js.map +1 -1
  27. package/dist/features/callout/decorators/Calloutable.d.ts +1 -1
  28. package/dist/features/callout/decorators/Calloutable.js.map +1 -1
  29. package/dist/features/crud/index.d.ts +0 -1
  30. package/dist/features/crud/index.js +0 -1
  31. package/dist/features/crud/index.js.map +1 -1
  32. package/dist/features/crud/operations/abstract/AbstractCRUDApi.d.ts +2 -2
  33. package/dist/features/crud/operations/abstract/AbstractCRUDApi.js +2 -2
  34. package/dist/features/crud/operations/abstract/AbstractCRUDApi.js.map +1 -1
  35. package/dist/features/crud/operations/operations/Create.js +2 -1
  36. package/dist/features/crud/operations/operations/Create.js.map +1 -1
  37. package/dist/features/crud/operations/operations/CreateBulk.js +2 -1
  38. package/dist/features/crud/operations/operations/CreateBulk.js.map +1 -1
  39. package/dist/features/crud/operations/operations/DeleteById.js +2 -1
  40. package/dist/features/crud/operations/operations/DeleteById.js.map +1 -1
  41. package/dist/features/crud/operations/operations/DeleteByIds.js +2 -2
  42. package/dist/features/crud/operations/operations/DeleteByIds.js.map +1 -1
  43. package/dist/features/crud/operations/operations/GetAll.js +2 -1
  44. package/dist/features/crud/operations/operations/GetAll.js.map +1 -1
  45. package/dist/features/crud/operations/operations/GetByFilters.js +2 -1
  46. package/dist/features/crud/operations/operations/GetByFilters.js.map +1 -1
  47. package/dist/features/crud/operations/operations/GetById.js +2 -1
  48. package/dist/features/crud/operations/operations/GetById.js.map +1 -1
  49. package/dist/features/crud/operations/operations/GetByIds.js +2 -1
  50. package/dist/features/crud/operations/operations/GetByIds.js.map +1 -1
  51. package/dist/features/crud/operations/operations/Update.js +2 -1
  52. package/dist/features/crud/operations/operations/Update.js.map +1 -1
  53. package/dist/features/crud/operations/operations/UpdateBulk.js +2 -1
  54. package/dist/features/crud/operations/operations/UpdateBulk.js.map +1 -1
  55. package/dist/features/crud/operations/operations/Upsert.js +2 -1
  56. package/dist/features/crud/operations/operations/Upsert.js.map +1 -1
  57. package/dist/features/crud/operations/operations/UpsertBulk.js +2 -1
  58. package/dist/features/crud/operations/operations/UpsertBulk.js.map +1 -1
  59. package/dist/features/crud/sync/compose/useCrudSync.js +4 -4
  60. package/dist/features/crud/sync/compose/useCrudSync.js.map +1 -1
  61. package/dist/features/crud/sync/index.d.ts +0 -4
  62. package/dist/features/crud/sync/index.js +0 -4
  63. package/dist/features/crud/sync/index.js.map +1 -1
  64. package/dist/features/crud/sync/middlewares/PushCrudEvent.js +4 -3
  65. package/dist/features/crud/sync/middlewares/PushCrudEvent.js.map +1 -1
  66. package/dist/features/index.d.ts +0 -2
  67. package/dist/features/index.js +0 -2
  68. package/dist/features/index.js.map +1 -1
  69. package/dist/index.d.ts +3 -6
  70. package/dist/index.js +3 -6
  71. package/dist/index.js.map +1 -1
  72. package/dist/main.d.ts +0 -1
  73. package/dist/main.js +0 -8
  74. package/dist/main.js.map +1 -1
  75. package/dist/micro/auth/AuthApi.d.ts +1 -1
  76. package/dist/micro/auth/AuthApi.js +20 -19
  77. package/dist/micro/auth/AuthApi.js.map +1 -1
  78. package/dist/micro/auth/WorkspaceApi.d.ts +1 -1
  79. package/dist/micro/auth/WorkspaceApi.js +6 -5
  80. package/dist/micro/auth/WorkspaceApi.js.map +1 -1
  81. package/dist/micro/auth/types/InitWorkspace.d.ts +3 -4
  82. package/dist/micro/query/FieldApi.d.ts +1 -1
  83. package/dist/micro/query/FieldApi.js +7 -6
  84. package/dist/micro/query/FieldApi.js.map +1 -1
  85. package/dist/micro/query/SObjectApi.d.ts +1 -1
  86. package/dist/micro/query/SObjectApi.js +4 -3
  87. package/dist/micro/query/SObjectApi.js.map +1 -1
  88. package/dist/micro/query/types/SObject.d.ts +4 -7
  89. package/dist/micro/query/types/SObjectField.d.ts +3 -5
  90. package/dist/micro/security/PermissionApi.d.ts +1 -1
  91. package/dist/micro/security/PermissionApi.js +5 -4
  92. package/dist/micro/security/PermissionApi.js.map +1 -1
  93. package/dist/micro/security/PermissionCategoryApi.d.ts +1 -1
  94. package/dist/micro/security/PermissionCategoryApi.js +4 -3
  95. package/dist/micro/security/PermissionCategoryApi.js.map +1 -1
  96. package/dist/micro/security/TeamApi.d.ts +1 -1
  97. package/dist/micro/security/TeamApi.js +5 -4
  98. package/dist/micro/security/TeamApi.js.map +1 -1
  99. package/dist/micro/workspace/ModuleApi.d.ts +1 -1
  100. package/dist/micro/workspace/ModuleApi.js +6 -5
  101. package/dist/micro/workspace/ModuleApi.js.map +1 -1
  102. package/dist/tsconfig.build.tsbuildinfo +1 -1
  103. package/dist/types/HasApiName.d.ts +3 -0
  104. package/dist/types/HasApiName.js +3 -0
  105. package/dist/types/HasApiName.js.map +1 -0
  106. package/dist/types/HasDescription.d.ts +3 -0
  107. package/dist/types/HasDescription.js +3 -0
  108. package/dist/types/HasDescription.js.map +1 -0
  109. package/dist/types/HasMode.d.ts +1 -1
  110. package/dist/types/HasNamespace.d.ts +3 -0
  111. package/dist/types/HasNamespace.js +3 -0
  112. package/dist/types/HasNamespace.js.map +1 -0
  113. package/dist/types/index.d.ts +4 -2
  114. package/dist/types/index.js +4 -2
  115. package/dist/types/index.js.map +1 -1
  116. package/package.json +1 -1
package/dist/Api.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { RawApi } from "./config";
2
1
  import { Callout } from "@buildery/callout";
3
- type AddCallouts<Result> = {
2
+ import { RawApi } from "./features/api";
3
+ type ApiCallouts<Result> = {
4
4
  [Method in keyof Result as Method extends string ? `${Method}Callout` : never]: Result[Method] extends (...params: infer EntityParams) => infer EntityResult ? () => Callout<EntityParams, any> : never;
5
5
  };
6
- type FullApi = {
6
+ type ApiType = {
7
7
  [Micro in keyof typeof RawApi]: {
8
- [Entity in keyof typeof RawApi[Micro]]: typeof RawApi[Micro][Entity] extends (...params: infer EntityParams) => infer EntityResult ? (...args: EntityParams) => EntityResult & AddCallouts<EntityResult> : never;
8
+ [Entity in keyof typeof RawApi[Micro]]: typeof RawApi[Micro][Entity] extends (...params: infer EntityParams) => infer EntityResult ? (...args: EntityParams) => EntityResult & ApiCallouts<EntityResult> : never;
9
9
  };
10
10
  };
11
- export declare const Api: FullApi;
11
+ export declare const Api: ApiType;
12
12
  export {};
package/dist/Api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Api = void 0;
4
- const config_1 = require("./config");
5
- exports.Api = config_1.RawApi;
4
+ const api_1 = require("./features/api");
5
+ exports.Api = api_1.RawApi;
6
6
  //# sourceMappingURL=Api.js.map
package/dist/Api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Api.js","sourceRoot":"","sources":["../src/Api.ts"],"names":[],"mappings":";;;AAAA,qCAAgC;AAiBnB,QAAA,GAAG,GAAG,eAA0B,CAAC"}
1
+ {"version":3,"file":"Api.js","sourceRoot":"","sources":["../src/Api.ts"],"names":[],"mappings":";;;AACA,wCAAsC;AAgBzB,QAAA,GAAG,GAAG,YAAiB,CAAC"}
@@ -1,6 +1,13 @@
1
+ import { EventBus } from "@buildery/event-bus";
1
2
  export declare class ApiConfigs {
2
- static workspaceUrl: string;
3
- static initURL: string;
4
- static queryUrl: string;
5
- static authUrl: string;
3
+ static readonly api: {
4
+ workspaceUrl: string;
5
+ initUrl: string;
6
+ queryUrl: string;
7
+ authUrl: string;
8
+ securityUrl: string;
9
+ };
10
+ static readonly event: {
11
+ eventBus: EventBus;
12
+ };
6
13
  }
@@ -4,4 +4,14 @@ exports.ApiConfigs = void 0;
4
4
  class ApiConfigs {
5
5
  }
6
6
  exports.ApiConfigs = ApiConfigs;
7
+ ApiConfigs.api = {
8
+ workspaceUrl: undefined,
9
+ initUrl: undefined,
10
+ queryUrl: undefined,
11
+ authUrl: undefined,
12
+ securityUrl: undefined,
13
+ };
14
+ ApiConfigs.event = {
15
+ eventBus: null,
16
+ };
7
17
  //# sourceMappingURL=ApiConfigs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiConfigs.js","sourceRoot":"","sources":["../src/ApiConfigs.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;CAKtB;AALD,gCAKC"}
1
+ {"version":3,"file":"ApiConfigs.js","sourceRoot":"","sources":["../src/ApiConfigs.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;;AAAvB,gCAYC;AAXwB,cAAG,GAAG;IAC3B,YAAY,EAAE,SAA+B;IAC7C,OAAO,EAAE,SAA+B;IACxC,QAAQ,EAAE,SAA+B;IACzC,OAAO,EAAE,SAA+B;IACxC,WAAW,EAAE,SAA+B;CAC7C,CAAA;AAEsB,gBAAK,GAAG;IAC7B,QAAQ,EAAE,IAAuB;CAClC,CAAA"}
@@ -1,5 +1,5 @@
1
- import { ApiConfigs } from "../../../config";
2
1
  import { BindThis } from "../../bind-this";
2
+ import { ApiConfigs } from "../../../ApiConfigs";
3
3
  export declare abstract class AbstractApi extends BindThis {
4
4
  readonly apiUrl: string;
5
5
  protected constructor(apiUrl: keyof typeof ApiConfigs.api);
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AbstractApi = void 0;
4
- const config_1 = require("../../../config");
5
4
  const bind_this_1 = require("../../bind-this");
5
+ const ApiConfigs_1 = require("../../../ApiConfigs");
6
6
  class AbstractApi extends bind_this_1.BindThis {
7
7
  constructor(apiUrl) {
8
8
  super();
9
- if (!(apiUrl && config_1.ApiConfigs.api[apiUrl])) {
9
+ if (!(apiUrl && ApiConfigs_1.ApiConfigs.api[apiUrl])) {
10
10
  console.log(apiUrl);
11
- console.log(config_1.ApiConfigs);
11
+ console.log(ApiConfigs_1.ApiConfigs);
12
12
  return;
13
13
  }
14
- this.apiUrl = config_1.ApiConfigs.api[apiUrl];
14
+ this.apiUrl = ApiConfigs_1.ApiConfigs.api[apiUrl];
15
15
  }
16
16
  }
17
17
  exports.AbstractApi = AbstractApi;
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractApi.js","sourceRoot":"","sources":["../../../../src/features/api/abstract/AbstractApi.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAC3C,+CAAyC;AAEzC,MAAsB,WAAY,SAAQ,oBAAQ;IAIhD,YAAsB,MAAmC;QACvD,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,CAAC,MAAM,IAAI,mBAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE;YACvC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpB,OAAO,CAAC,GAAG,CAAC,mBAAU,CAAC,CAAA;YAEvB,OAAO;SAER;QAED,IAAI,CAAC,MAAM,GAAG,mBAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;CACF;AAjBD,kCAiBC;AAED,MAAM,gBAAiB,SAAQ,KAAK;CAAG"}
1
+ {"version":3,"file":"AbstractApi.js","sourceRoot":"","sources":["../../../../src/features/api/abstract/AbstractApi.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,oDAA+C;AAE/C,MAAsB,WAAY,SAAQ,oBAAQ;IAIhD,YAAsB,MAAmC;QACvD,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,CAAC,MAAM,IAAI,uBAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE;YACvC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpB,OAAO,CAAC,GAAG,CAAC,uBAAU,CAAC,CAAA;YAEvB,OAAO;SAER;QAED,IAAI,CAAC,MAAM,GAAG,uBAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;CACF;AAjBD,kCAiBC;AAED,MAAM,gBAAiB,SAAQ,KAAK;CAAG"}
@@ -0,0 +1 @@
1
+ export * from './AbstractApi';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AbstractApi"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/api/abstract/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -0,0 +1,34 @@
1
+ import { AuthApi } from "../../../micro/auth/AuthApi";
2
+ import { WorkspaceApi } from "../../../micro/auth/WorkspaceApi";
3
+ import { SObjectApi } from "../../../micro/query/SObjectApi";
4
+ import { FieldApi } from "../../../micro/query/FieldApi";
5
+ import { PermissionApi } from "../../../micro/security/PermissionApi";
6
+ import { PermissionCategoryApi } from "../../../micro/security/PermissionCategoryApi";
7
+ import { TeamApi } from "../../../micro/security/TeamApi";
8
+ import { ModuleApi } from "../../../micro/workspace/ModuleApi";
9
+ import { IPermission, IPermissionAssignment, IPermissionCategory, IPermissionDefinition, IPermissionGroup, IPermissionSet, Module, SObject, SObjectField, Team, User } from "../../../micro";
10
+ import { Create, CreateBulk, DeleteById, DeleteByIds, GetAll, GetByFilters, GetById, Update, UpdateBulk, Upsert, UpsertBulk } from "../../crud/operations";
11
+ export declare const RawApi: {
12
+ readonly auth: {
13
+ readonly user: () => AuthApi;
14
+ readonly workspace: () => WorkspaceApi;
15
+ };
16
+ readonly query: {
17
+ readonly object: <T extends SObject>() => SObjectApi<unknown> & GetAll & GetById & Create<T> & Update<T> & DeleteById;
18
+ readonly field: <T_1 extends SObjectField>() => FieldApi & GetById & Update<T_1> & DeleteById;
19
+ readonly record: <T_2>(objectName: string) => GetAll & GetById & GetByFilters<unknown> & Create<T_2> & Update<T_2> & DeleteById;
20
+ };
21
+ readonly security: {
22
+ readonly permission: <T_3 extends IPermission>() => PermissionApi & GetAll & GetById & Create<T_3> & Update<T_3> & DeleteById;
23
+ readonly permissionCategory: <T_4 extends IPermissionCategory>() => PermissionCategoryApi & GetAll & GetById & Create<T_4> & Update<T_4> & DeleteById;
24
+ readonly permissionAssignment: <T_5 extends IPermissionAssignment>() => GetAll & GetById & Create<T_5> & Update<T_5> & DeleteById;
25
+ readonly permissionDefinition: <T_6 extends IPermissionDefinition>() => GetAll & GetById & Create<T_6> & Update<T_6> & DeleteById;
26
+ readonly permissionGroup: <T_7 extends IPermissionGroup>() => GetAll & GetById & Create<T_7> & Update<T_7> & DeleteById;
27
+ readonly permissionSet: <T_8 extends IPermissionSet>() => GetAll & GetById & Create<T_8> & Update<T_8> & DeleteById;
28
+ readonly team: <T_9 extends Team>() => TeamApi & GetAll & GetById & Create<T_9> & Update<T_9> & DeleteById;
29
+ };
30
+ readonly workspace: {
31
+ readonly user: <T_10 extends User>() => GetAll & GetById & Create<T_10> & Update<T_10> & DeleteById;
32
+ readonly module: <T_11 extends Module>() => ModuleApi & GetAll & GetById & Create<T_11> & Update<T_11> & Upsert<T_11> & CreateBulk<T_11> & UpdateBulk<T_11> & UpsertBulk<T_11> & DeleteById & DeleteByIds;
33
+ };
34
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RawApi = void 0;
4
+ const compose_1 = require("../../../compose");
5
+ const AuthApi_1 = require("../../../micro/auth/AuthApi");
6
+ const WorkspaceApi_1 = require("../../../micro/auth/WorkspaceApi");
7
+ const ts_mixer_1 = require("ts-mixer");
8
+ const SObjectApi_1 = require("../../../micro/query/SObjectApi");
9
+ const FieldApi_1 = require("../../../micro/query/FieldApi");
10
+ const PermissionApi_1 = require("../../../micro/security/PermissionApi");
11
+ const PermissionCategoryApi_1 = require("../../../micro/security/PermissionCategoryApi");
12
+ const TeamApi_1 = require("../../../micro/security/TeamApi");
13
+ const ModuleApi_1 = require("../../../micro/workspace/ModuleApi");
14
+ const operations_1 = require("../../crud/operations");
15
+ const { getInstance } = (0, compose_1.useSingleton)();
16
+ exports.RawApi = {
17
+ auth: {
18
+ user: () => getInstance(AuthApi_1.AuthApi),
19
+ workspace: () => getInstance(WorkspaceApi_1.WorkspaceApi)
20
+ },
21
+ query: {
22
+ object: () => getInstance((0, ts_mixer_1.Mixin)(SObjectApi_1.SObjectApi, operations_1.GetAll, operations_1.GetById, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'queryUrl', 'metadata/object'),
23
+ field: () => getInstance((0, ts_mixer_1.Mixin)(FieldApi_1.FieldApi, operations_1.GetById, (operations_1.Update), operations_1.DeleteById), 'queryUrl', 'metadata/field'),
24
+ record: (objectName) => getInstance((0, ts_mixer_1.Mixin)(operations_1.GetAll, operations_1.GetById, operations_1.GetByFilters, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'queryUrl', objectName),
25
+ },
26
+ security: {
27
+ permission: () => getInstance((0, ts_mixer_1.Mixin)(PermissionApi_1.PermissionApi, operations_1.GetAll, operations_1.GetById, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'securityUrl', 'permission'),
28
+ permissionCategory: () => getInstance((0, ts_mixer_1.Mixin)(PermissionCategoryApi_1.PermissionCategoryApi, operations_1.GetAll, operations_1.GetById, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'securityUrl', 'permission-category'),
29
+ permissionAssignment: () => getInstance((0, ts_mixer_1.Mixin)(operations_1.GetAll, operations_1.GetById, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'securityUrl', 'permission-assignment'),
30
+ permissionDefinition: () => getInstance((0, ts_mixer_1.Mixin)(operations_1.GetAll, operations_1.GetById, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'securityUrl', 'permission-definition'),
31
+ permissionGroup: () => getInstance((0, ts_mixer_1.Mixin)(operations_1.GetAll, operations_1.GetById, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'securityUrl', 'permission-group'),
32
+ permissionSet: () => getInstance((0, ts_mixer_1.Mixin)(operations_1.GetAll, operations_1.GetById, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'securityUrl', 'permission-set'),
33
+ team: () => getInstance((0, ts_mixer_1.Mixin)(TeamApi_1.TeamApi, operations_1.GetAll, operations_1.GetById, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'securityUrl', 'team'),
34
+ },
35
+ workspace: {
36
+ user: () => getInstance((0, ts_mixer_1.Mixin)(operations_1.GetAll, operations_1.GetById, (operations_1.Create), (operations_1.Update), operations_1.DeleteById), 'workspaceUrl', 'user'),
37
+ module: () => getInstance((0, ts_mixer_1.Mixin)(ModuleApi_1.ModuleApi, (0, ts_mixer_1.Mixin)(operations_1.GetAll, operations_1.GetById), (0, ts_mixer_1.Mixin)((operations_1.Create), (operations_1.Update), (operations_1.Upsert)), (operations_1.CreateBulk), (operations_1.UpdateBulk), (operations_1.UpsertBulk), operations_1.DeleteById, operations_1.DeleteByIds), 'workspaceUrl', 'module'),
38
+ },
39
+ };
40
+ exports.RawApi.query.object().getById('test');
41
+ //# sourceMappingURL=RawApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RawApi.js","sourceRoot":"","sources":["../../../../src/features/api/config/RawApi.ts"],"names":[],"mappings":";;;AAAA,8CAA8C;AAC9C,yDAAoD;AACpD,mEAA8D;AAC9D,uCAA+B;AAC/B,gEAA2D;AAC3D,4DAAuD;AACvD,yEAAoE;AACpE,yFAAoF;AACpF,6DAAwD;AACxD,kEAA6D;AAc7D,sDAU+B;AAE/B,MAAM,EAAC,WAAW,EAAC,GAAG,IAAA,sBAAY,GAAE,CAAC;AAExB,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,iBAAO,CAAC;QAChC,SAAS,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,2BAAY,CAAC;KAC3C;IAED,KAAK,EAAE;QACL,MAAM,EAAE,GAAuB,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,uBAAU,EAAE,mBAAM,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,UAAU,EAAE,iBAAiB,CAAC;QAClJ,KAAK,EAAE,GAA4B,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,mBAAQ,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,UAAU,EAAE,gBAAgB,CAAC;QAChI,MAAM,EAAE,CAAK,UAAkB,EAAE,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,mBAAM,EAAE,oBAAO,EAAE,yBAAY,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC;KAChJ;IAED,QAAQ,EAAE;QACR,UAAU,EAAE,GAA2B,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,6BAAa,EAAE,mBAAM,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,aAAa,EAAE,YAAY,CAAC;QAC3J,kBAAkB,EAAE,GAAmC,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,6CAAqB,EAAE,mBAAM,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,aAAa,EAAE,qBAAqB,CAAC;QAC5L,oBAAoB,EAAE,GAAqC,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,mBAAM,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,aAAa,EAAE,uBAAuB,CAAC;QAC3K,oBAAoB,EAAE,GAAqC,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,mBAAM,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,aAAa,EAAE,uBAAuB,CAAC;QAC3K,eAAe,EAAE,GAAgC,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,mBAAM,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,aAAa,EAAE,kBAAkB,CAAC;QAC5J,aAAa,EAAE,GAA8B,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,mBAAM,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,aAAa,EAAE,gBAAgB,CAAC;QACtJ,IAAI,EAAE,GAAoB,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,iBAAO,EAAE,mBAAM,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC;KACnI;IAED,SAAS,EAAE;QACT,IAAI,EAAE,GAAoB,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,mBAAM,EAAE,oBAAO,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,uBAAU,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC;QAC1H,MAAM,EAAE,GAAsB,EAAE,CAAC,WAAW,CAAC,IAAA,gBAAK,EAAC,qBAAS,EAAE,IAAA,gBAAK,EAAC,mBAAM,EAAE,oBAAO,CAAC,EAAE,IAAA,gBAAK,EAAC,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,EAAE,CAAA,mBAAS,CAAA,CAAC,EAAE,CAAA,uBAAa,CAAA,EAAE,CAAA,uBAAa,CAAA,EAAE,CAAA,uBAAa,CAAA,EAAE,uBAAU,EAAE,wBAAW,CAAC,EAAE,cAAc,EAAE,QAAQ,CAAC;KAC/N;CACO,CAAA;AAGV,cAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './RawApi';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./RawApi"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/api/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
@@ -0,0 +1,2 @@
1
+ export * from './abstract';
2
+ export * from './config';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./abstract"), exports);
18
+ __exportStar(require("./config"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB"}
@@ -1,3 +1,2 @@
1
- export * from './errors';
2
1
  export * from './services';
3
2
  export * from './types';
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./errors"), exports);
18
17
  __exportStar(require("./services"), exports);
19
18
  __exportStar(require("./types"), exports);
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB"}
@@ -2,18 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AuthService = void 0;
4
4
  const AuthTokensService_1 = require("./AuthTokensService");
5
+ const Api_1 = require("../../../Api");
5
6
  class AuthService {
6
7
  static async signInByCode(code) {
8
+ var _a;
7
9
  if (!code)
8
10
  return;
9
- const tokens = null;
11
+ const tokens = (_a = (await Api_1.Api.auth.user().getTokensByAuthCodeCallout().invoke(code))) === null || _a === void 0 ? void 0 : _a.data;
10
12
  return AuthTokensService_1.AuthTokensService.setTokens(tokens);
11
13
  }
12
14
  static async refresh() {
13
15
  const refreshToken = AuthTokensService_1.AuthTokensService.getRefreshToken();
14
16
  if (!refreshToken)
15
17
  return;
16
- const tokens = null;
18
+ const tokens = (await Api_1.Api.auth.user().refreshCallout().invoke(refreshToken)).data;
17
19
  AuthTokensService_1.AuthTokensService.setTokens(tokens);
18
20
  return tokens;
19
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AuthService.js","sourceRoot":"","sources":["../../../../src/features/auth/services/AuthService.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAGtD,MAAa,WAAW;IAEtB,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,IAAY;QACpC,IAAI,CAAC,IAAI;YAAE,OAAO;QAElB,MAAM,MAAM,GAAG,IAAI,CAAC;QAEpB,OAAO,qCAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,OAAO;QAClB,MAAM,YAAY,GAAG,qCAAiB,CAAC,eAAe,EAAE,CAAC;QAEzD,IAAI,CAAC,YAAY;YAAE,OAAO;QAE1B,MAAM,MAAM,GAAG,IAAI,CAAC;QAEpB,qCAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEpC,OAAO,MAAM,CAAC;IAChB,CAAC;CAEF;AAtBD,kCAsBC"}
1
+ {"version":3,"file":"AuthService.js","sourceRoot":"","sources":["../../../../src/features/auth/services/AuthService.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,sCAAiC;AAEjC,MAAa,WAAW;IAEtB,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,IAAY;;QACpC,IAAI,CAAC,IAAI;YAAE,OAAO;QAElB,MAAM,MAAM,GAAG,MAAA,CAAC,MAAM,SAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,0BAA0B,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,0CAAE,IAAI,CAAC;QAEvF,OAAO,qCAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,OAAO;QAClB,MAAM,YAAY,GAAG,qCAAiB,CAAC,eAAe,EAAE,CAAC;QAEzD,IAAI,CAAC,YAAY;YAAE,OAAO;QAE1B,MAAM,MAAM,GAAG,CAAC,MAAM,SAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC;QAElF,qCAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEpC,OAAO,MAAM,CAAC;IAChB,CAAC;CAEF;AAtBD,kCAsBC"}
@@ -1,3 +1,3 @@
1
1
  import { ApiCalloutMiddleware } from "../types";
2
- import { AbstractCRUDApi } from "../../crud";
2
+ import { AbstractCRUDApi } from "../../crud/operations";
3
3
  export declare const Calloutable: (...apiMiddlewares: Array<ApiCalloutMiddleware<AbstractCRUDApi>>) => (target: any, method: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -1 +1 @@
1
- {"version":3,"file":"Calloutable.js","sourceRoot":"","sources":["../../../../src/features/callout/decorators/Calloutable.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAG1C,qCAA4C;AAErC,MAAM,WAAW,GAAG,CAAC,GAAG,cAA4D,EAAE,EAAE,CAAC,CAAC,MAAW,EAAE,MAAc,EAAE,UAA8B,EAAE,EAAE;IAC9J,MAAM,CAAC,GAAG,MAAM,SAAS,CAAC,GAAG;QAC3B,MAAM,OAAO,GAAG,IAAI,iBAAO,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,uBAAgB,CAAC,gBAAgB,EAAE,CAAC,CAAC;QAE9F,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,aAAa,CAAC,EAAE;YAClC,MAAM,iBAAiB,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,IAAI,CAAC,CAAC;YAEhD,IAAI,CAAC,iBAAiB;gBAAE,OAAO;YAE/B,OAAO,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAA;AAhBY,QAAA,WAAW,eAgBvB"}
1
+ {"version":3,"file":"Calloutable.js","sourceRoot":"","sources":["../../../../src/features/callout/decorators/Calloutable.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAE1C,qCAA4C;AAGrC,MAAM,WAAW,GAAG,CAAC,GAAG,cAA4D,EAAE,EAAE,CAAC,CAAC,MAAW,EAAE,MAAc,EAAE,UAA8B,EAAE,EAAE;IAC9J,MAAM,CAAC,GAAG,MAAM,SAAS,CAAC,GAAG;QAC3B,MAAM,OAAO,GAAG,IAAI,iBAAO,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,uBAAgB,CAAC,gBAAgB,EAAE,CAAC,CAAC;QAE9F,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,aAAa,CAAC,EAAE;YAClC,MAAM,iBAAiB,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,IAAI,CAAC,CAAC;YAEhD,IAAI,CAAC,iBAAiB;gBAAE,OAAO;YAE/B,OAAO,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAA;AAhBY,QAAA,WAAW,eAgBvB"}
@@ -1,2 +1 @@
1
- export * from './operations';
2
1
  export * from './sync';
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./operations"), exports);
18
17
  __exportStar(require("./sync"), exports);
19
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/crud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/crud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
@@ -1,5 +1,5 @@
1
- import { AbstractApi } from "../../../api/abstract/AbstractApi";
2
- import { ApiConfigs } from "../../../../config";
1
+ import { AbstractApi } from "../../../api";
2
+ import { ApiConfigs } from "../../../../ApiConfigs";
3
3
  export declare abstract class AbstractCRUDApi extends AbstractApi {
4
4
  readonly objectName: string;
5
5
  constructor(apiUrl: keyof typeof ApiConfigs.api, objectName: string);
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AbstractCRUDApi = void 0;
4
- const AbstractApi_1 = require("../../../api/abstract/AbstractApi");
5
- class AbstractCRUDApi extends AbstractApi_1.AbstractApi {
4
+ const api_1 = require("../../../api");
5
+ class AbstractCRUDApi extends api_1.AbstractApi {
6
6
  constructor(apiUrl, objectName) {
7
7
  super(apiUrl);
8
8
  if (!objectName) {
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractCRUDApi.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/abstract/AbstractCRUDApi.ts"],"names":[],"mappings":";;;AAAA,mEAA8D;AAG9D,MAAsB,eAAgB,SAAQ,yBAAW;IAIvD,YAAmB,MAAmC,EAAE,UAAkB;QACxE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,oBAAoB,CAAC,4BAA4B,CAAC,CAAC;SAC9D;QAED,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CAEF;AAdD,0CAcC;AAED,MAAM,oBAAqB,SAAQ,KAAK;CAAG"}
1
+ {"version":3,"file":"AbstractCRUDApi.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/abstract/AbstractCRUDApi.ts"],"names":[],"mappings":";;;AAAA,sCAAyC;AAGzC,MAAsB,eAAgB,SAAQ,iBAAW;IAIvD,YAAmB,MAAmC,EAAE,UAAkB;QACxE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,oBAAoB,CAAC,4BAA4B,CAAC,CAAC;SAC9D;QAED,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CAEF;AAdD,0CAcC;AAED,MAAM,oBAAqB,SAAQ,KAAK;CAAG"}
@@ -13,6 +13,7 @@ exports.Create = void 0;
13
13
  const abstract_1 = require("../abstract");
14
14
  const callout_1 = require("../../../callout");
15
15
  const sync_1 = require("../../sync");
16
+ const middlewares_1 = require("../../sync/middlewares");
16
17
  class Create extends abstract_1.AbstractCRUDApi {
17
18
  create(entity) {
18
19
  return {
@@ -25,7 +26,7 @@ class Create extends abstract_1.AbstractCRUDApi {
25
26
  ;
26
27
  }
27
28
  __decorate([
28
- (0, callout_1.Calloutable)((0, sync_1.PushCrudEvent)(sync_1.CrudSyncAction.Create)),
29
+ (0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.Create)),
29
30
  __metadata("design:type", Function),
30
31
  __metadata("design:paramtypes", [Object]),
31
32
  __metadata("design:returntype", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAAyD;AAEzD,MAAa,MAAU,SAAQ,0BAAe;IAGrC,MAAM,CAAC,MAAS;QACrB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;YAC1B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,oBAAa,EAAC,qBAAc,CAAC,MAAM,CAAC,CAAC;;;;oCAQjD;AAVH,wBAYC"}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,MAAU,SAAQ,0BAAe;IAGrC,MAAM,CAAC,MAAS;QACrB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;YAC1B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,MAAM,CAAC,CAAC;;;;oCAQjD;AAVH,wBAYC"}
@@ -13,6 +13,7 @@ exports.CreateBulk = void 0;
13
13
  const abstract_1 = require("../abstract");
14
14
  const callout_1 = require("../../../callout");
15
15
  const sync_1 = require("../../sync");
16
+ const middlewares_1 = require("../../sync/middlewares");
16
17
  class CreateBulk extends abstract_1.AbstractCRUDApi {
17
18
  createBulk(entities) {
18
19
  return {
@@ -25,7 +26,7 @@ class CreateBulk extends abstract_1.AbstractCRUDApi {
25
26
  ;
26
27
  }
27
28
  __decorate([
28
- (0, callout_1.Calloutable)((0, sync_1.PushCrudEvent)(sync_1.CrudSyncAction.CreateBulk)),
29
+ (0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.CreateBulk)),
29
30
  __metadata("design:type", Function),
30
31
  __metadata("design:paramtypes", [Array]),
31
32
  __metadata("design:returntype", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"CreateBulk.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/CreateBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0CAA4C;AAC5C,8CAA6C;AAC7C,qCAAyD;AAEzD,MAAa,UAAc,SAAQ,0BAAe;IAGzC,UAAU,CAAC,QAAkB;QAClC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,OAAO;YAC/B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,QAAQ;SACf,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,oBAAa,EAAC,qBAAc,CAAC,UAAU,CAAC,CAAC;;qCAC1B,KAAK;;4CAOhC;AAVH,gCAYC"}
1
+ {"version":3,"file":"CreateBulk.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/CreateBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0CAA4C;AAC5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,UAAc,SAAQ,0BAAe;IAGzC,UAAU,CAAC,QAAkB;QAClC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,OAAO;YAC/B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,QAAQ;SACf,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,UAAU,CAAC,CAAC;;qCAC1B,KAAK;;4CAOhC;AAVH,gCAYC"}
@@ -13,6 +13,7 @@ exports.DeleteById = void 0;
13
13
  const abstract_1 = require("../abstract");
14
14
  const callout_1 = require("../../../callout");
15
15
  const sync_1 = require("../../sync");
16
+ const middlewares_1 = require("../../sync/middlewares");
16
17
  class DeleteById extends abstract_1.AbstractCRUDApi {
17
18
  deleteById(entityId) {
18
19
  return {
@@ -24,7 +25,7 @@ class DeleteById extends abstract_1.AbstractCRUDApi {
24
25
  ;
25
26
  }
26
27
  __decorate([
27
- (0, callout_1.Calloutable)((0, sync_1.PushCrudEvent)(sync_1.CrudSyncAction.Delete)),
28
+ (0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.Delete)),
28
29
  __metadata("design:type", Function),
29
30
  __metadata("design:paramtypes", [String]),
30
31
  __metadata("design:returntype", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteById.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteById.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAAyD;AAEzD,MAAa,UAAW,SAAQ,0BAAe;IAGtC,UAAU,CAAC,QAAgB;QAChC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,EAAE;YACtC,MAAM,EAAE,QAAQ;SACjB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,qBAAW,EAAC,IAAA,oBAAa,EAAC,qBAAc,CAAC,MAAM,CAAC,CAAC;;;;4CAOjD;AATH,gCAWC"}
1
+ {"version":3,"file":"DeleteById.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteById.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,UAAW,SAAQ,0BAAe;IAGtC,UAAU,CAAC,QAAgB;QAChC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,EAAE;YACtC,MAAM,EAAE,QAAQ;SACjB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,MAAM,CAAC,CAAC;;;;4CAOjD;AATH,gCAWC"}
@@ -13,7 +13,7 @@ exports.DeleteByIds = void 0;
13
13
  const abstract_1 = require("../abstract");
14
14
  const callout_1 = require("../../../callout");
15
15
  const sync_1 = require("../../sync");
16
- const sync_2 = require("../../sync");
16
+ const middlewares_1 = require("../../sync/middlewares");
17
17
  class DeleteByIds extends abstract_1.AbstractCRUDApi {
18
18
  deleteByIds(entityIds) {
19
19
  return {
@@ -25,7 +25,7 @@ class DeleteByIds extends abstract_1.AbstractCRUDApi {
25
25
  ;
26
26
  }
27
27
  __decorate([
28
- (0, callout_1.Calloutable)((0, sync_1.PushCrudEvent)(sync_2.CrudSyncAction.DeleteBulk)),
28
+ (0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.DeleteBulk)),
29
29
  __metadata("design:type", Function),
30
30
  __metadata("design:paramtypes", [Array]),
31
31
  __metadata("design:returntype", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteByIds.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteByIds.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAAyC;AACzC,qCAA0C;AAE1C,MAAa,WAAY,SAAQ,0BAAe;IAGvC,WAAW,CAAC,SAAwB;QACzC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,SAAS,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,CAAC,GAAG,CAAC,EAAE;YACvD,MAAM,EAAE,QAAQ;SACjB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,qBAAW,EAAC,IAAA,oBAAa,EAAC,qBAAc,CAAC,UAAU,CAAC,CAAC;;qCACxB,KAAK;;8CAMlC;AATH,kCAWC"}
1
+ {"version":3,"file":"DeleteByIds.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteByIds.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,WAAY,SAAQ,0BAAe;IAGvC,WAAW,CAAC,SAAwB;QACzC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,SAAS,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,CAAC,GAAG,CAAC,EAAE;YACvD,MAAM,EAAE,QAAQ;SACjB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,UAAU,CAAC,CAAC;;qCACxB,KAAK;;8CAMlC;AATH,kCAWC"}
@@ -13,6 +13,7 @@ exports.GetAll = void 0;
13
13
  const abstract_1 = require("../abstract");
14
14
  const callout_1 = require("../../../callout");
15
15
  const sync_1 = require("../../sync");
16
+ const middlewares_1 = require("../../sync/middlewares");
16
17
  class GetAll extends abstract_1.AbstractCRUDApi {
17
18
  getAll() {
18
19
  return {
@@ -24,7 +25,7 @@ class GetAll extends abstract_1.AbstractCRUDApi {
24
25
  ;
25
26
  }
26
27
  __decorate([
27
- (0, callout_1.Calloutable)((0, sync_1.PushCrudEvent)(sync_1.CrudSyncAction.QueryBulk)),
28
+ (0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.QueryBulk)),
28
29
  __metadata("design:type", Function),
29
30
  __metadata("design:paramtypes", []),
30
31
  __metadata("design:returntype", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"GetAll.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetAll.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAAyD;AAEzD,MAAa,MAAO,SAAQ,0BAAe;IAGlC,MAAM;QACX,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;YAC1B,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,qBAAW,EAAC,IAAA,oBAAa,EAAC,qBAAc,CAAC,SAAS,CAAC,CAAC;;;;oCAOpD;AATH,wBAWC"}
1
+ {"version":3,"file":"GetAll.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetAll.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,MAAO,SAAQ,0BAAe;IAGlC,MAAM;QACX,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;YAC1B,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,SAAS,CAAC,CAAC;;;;oCAOpD;AATH,wBAWC"}
@@ -13,6 +13,7 @@ exports.GetByFilters = void 0;
13
13
  const abstract_1 = require("../abstract");
14
14
  const callout_1 = require("../../../callout");
15
15
  const sync_1 = require("../../sync");
16
+ const middlewares_1 = require("../../sync/middlewares");
16
17
  class GetByFilters extends abstract_1.AbstractCRUDApi {
17
18
  getByFilters(filter, options) {
18
19
  return {
@@ -25,7 +26,7 @@ class GetByFilters extends abstract_1.AbstractCRUDApi {
25
26
  ;
26
27
  }
27
28
  __decorate([
28
- (0, callout_1.Calloutable)((0, sync_1.PushCrudEvent)(sync_1.CrudSyncAction.QueryBulk)),
29
+ (0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.QueryBulk)),
29
30
  __metadata("design:type", Function),
30
31
  __metadata("design:paramtypes", [Object, Object]),
31
32
  __metadata("design:returntype", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"GetByFilters.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetByFilters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAAyD;AAGzD,MAAa,YAAgB,SAAQ,0BAAe;IAG3C,YAAY,CAAI,MAAkB,EAAE,OAAa;QACtD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,WAAW,IAAI,CAAC,UAAU,QAAQ;YACvC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAC,MAAM,EAAE,OAAO,EAAC;SACxB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,oBAAa,EAAC,qBAAc,CAAC,SAAS,CAAC,CAAC;;;;gDAQpD;AAVH,oCAYC"}
1
+ {"version":3,"file":"GetByFilters.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetByFilters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAE1C,wDAAqD;AAErD,MAAa,YAAgB,SAAQ,0BAAe;IAG3C,YAAY,CAAI,MAAkB,EAAE,OAAa;QACtD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,WAAW,IAAI,CAAC,UAAU,QAAQ;YACvC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAC,MAAM,EAAE,OAAO,EAAC;SACxB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,SAAS,CAAC,CAAC;;;;gDAQpD;AAVH,oCAYC"}
@@ -13,6 +13,7 @@ exports.GetById = void 0;
13
13
  const abstract_1 = require("../abstract");
14
14
  const callout_1 = require("../../../callout");
15
15
  const sync_1 = require("../../sync");
16
+ const middlewares_1 = require("../../sync/middlewares");
16
17
  class GetById extends abstract_1.AbstractCRUDApi {
17
18
  getById(entityId) {
18
19
  return {
@@ -24,7 +25,7 @@ class GetById extends abstract_1.AbstractCRUDApi {
24
25
  ;
25
26
  }
26
27
  __decorate([
27
- (0, callout_1.Calloutable)((0, sync_1.PushCrudEvent)(sync_1.CrudSyncAction.Query)),
28
+ (0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.Query)),
28
29
  __metadata("design:type", Function),
29
30
  __metadata("design:paramtypes", [String]),
30
31
  __metadata("design:returntype", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"GetById.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetById.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAAyD;AAEzD,MAAa,OAAQ,SAAQ,0BAAe;IAGnC,OAAO,CAAC,QAAgB;QAC7B,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,EAAE;YACtC,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,qBAAW,EAAC,IAAA,oBAAa,EAAC,qBAAc,CAAC,KAAK,CAAC,CAAC;;;;sCAOhD;AATH,0BAWC"}
1
+ {"version":3,"file":"GetById.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetById.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,OAAQ,SAAQ,0BAAe;IAGnC,OAAO,CAAC,QAAgB;QAC7B,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,EAAE;YACtC,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,KAAK,CAAC,CAAC;;;;sCAOhD;AATH,0BAWC"}
@@ -13,6 +13,7 @@ exports.GetByIds = void 0;
13
13
  const abstract_1 = require("../abstract");
14
14
  const callout_1 = require("../../../callout");
15
15
  const sync_1 = require("../../sync");
16
+ const middlewares_1 = require("../../sync/middlewares");
16
17
  class GetByIds extends abstract_1.AbstractCRUDApi {
17
18
  getByIds(entityIds) {
18
19
  return {
@@ -25,7 +26,7 @@ class GetByIds extends abstract_1.AbstractCRUDApi {
25
26
  ;
26
27
  }
27
28
  __decorate([
28
- (0, callout_1.Calloutable)((0, sync_1.PushCrudEvent)(sync_1.CrudSyncAction.QueryBulk)),
29
+ (0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.QueryBulk)),
29
30
  __metadata("design:type", Function),
30
31
  __metadata("design:paramtypes", [Array]),
31
32
  __metadata("design:returntype", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"GetByIds.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetByIds.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAAyD;AAEzD,MAAa,QAAS,SAAQ,0BAAe;IAGpC,QAAQ,CAAC,SAAwB;QACtC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,MAAM;YAC9B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,oBAAa,EAAC,qBAAc,CAAC,SAAS,CAAC,CAAC;;qCAC1B,KAAK;;wCAO/B;AAVH,4BAYC"}
1
+ {"version":3,"file":"GetByIds.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetByIds.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,QAAS,SAAQ,0BAAe;IAGpC,QAAQ,CAAC,SAAwB;QACtC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,MAAM;YAC9B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,SAAS,CAAC,CAAC;;qCAC1B,KAAK;;wCAO/B;AAVH,4BAYC"}
@@ -13,6 +13,7 @@ exports.Update = void 0;
13
13
  const abstract_1 = require("../abstract");
14
14
  const callout_1 = require("../../../callout");
15
15
  const sync_1 = require("../../sync");
16
+ const middlewares_1 = require("../../sync/middlewares");
16
17
  class Update extends abstract_1.AbstractCRUDApi {
17
18
  update(entity) {
18
19
  return {
@@ -25,7 +26,7 @@ class Update extends abstract_1.AbstractCRUDApi {
25
26
  ;
26
27
  }
27
28
  __decorate([
28
- (0, callout_1.Calloutable)((0, sync_1.PushCrudEvent)(sync_1.CrudSyncAction.Update)),
29
+ (0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.Update)),
29
30
  __metadata("design:type", Function),
30
31
  __metadata("design:paramtypes", [Object]),
31
32
  __metadata("design:returntype", Object)