@buildery/ts-api-kit 4.12.3 → 5.0.1
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.
- package/dist/Api.d.ts +8 -6
- package/dist/Api.js.map +1 -1
- package/dist/compose/useSingleton.d.ts +2 -1
- package/dist/compose/useSingleton.js.map +1 -1
- package/dist/config/ApiConfigs.d.ts +10 -6
- package/dist/config/ApiConfigs.js +10 -0
- package/dist/config/ApiConfigs.js.map +1 -1
- package/dist/config/RawApi.d.ts +32 -14
- package/dist/config/RawApi.js +35 -14
- package/dist/config/RawApi.js.map +1 -1
- package/dist/features/api/abstract/AbstractApi.d.ts +6 -0
- package/dist/features/api/abstract/AbstractApi.js +20 -0
- package/dist/features/api/abstract/AbstractApi.js.map +1 -0
- package/dist/features/auth/services/AuthService.js +2 -4
- package/dist/features/auth/services/AuthService.js.map +1 -1
- package/dist/features/callout/decorators/Calloutable.d.ts +3 -4
- package/dist/features/callout/decorators/Calloutable.js +10 -42
- package/dist/features/callout/decorators/Calloutable.js.map +1 -1
- package/dist/features/callout/decorators/index.d.ts +0 -1
- package/dist/features/callout/decorators/index.js +0 -1
- package/dist/features/callout/decorators/index.js.map +1 -1
- package/dist/features/callout/types/ApiCalloutMiddleware.d.ts +1 -1
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.d.ts +5 -3
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.js +11 -5
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.js.map +1 -1
- package/dist/features/crud/operations/index.d.ts +0 -1
- package/dist/features/crud/operations/index.js +0 -1
- package/dist/features/crud/operations/index.js.map +1 -1
- package/dist/features/crud/operations/operations/Create.d.ts +2 -2
- package/dist/features/crud/operations/operations/Create.js +4 -5
- package/dist/features/crud/operations/operations/Create.js.map +1 -1
- package/dist/features/crud/operations/operations/CreateBulk.d.ts +2 -2
- package/dist/features/crud/operations/operations/CreateBulk.js +4 -5
- package/dist/features/crud/operations/operations/CreateBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteById.d.ts +1 -1
- package/dist/features/crud/operations/operations/DeleteById.js +4 -5
- package/dist/features/crud/operations/operations/DeleteById.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteByIds.d.ts +1 -1
- package/dist/features/crud/operations/operations/DeleteByIds.js +3 -3
- package/dist/features/crud/operations/operations/DeleteByIds.js.map +1 -1
- package/dist/features/crud/operations/operations/GetAll.d.ts +1 -1
- package/dist/features/crud/operations/operations/GetAll.js +3 -3
- package/dist/features/crud/operations/operations/GetAll.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByFilters.d.ts +6 -0
- package/dist/features/crud/operations/operations/GetByFilters.js +34 -0
- package/dist/features/crud/operations/operations/GetByFilters.js.map +1 -0
- package/dist/features/crud/operations/operations/GetById.d.ts +1 -1
- package/dist/features/crud/operations/operations/GetById.js +3 -3
- package/dist/features/crud/operations/operations/GetById.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByIds.d.ts +1 -1
- package/dist/features/crud/operations/operations/GetByIds.js +3 -3
- package/dist/features/crud/operations/operations/GetByIds.js.map +1 -1
- package/dist/features/crud/operations/operations/Update.d.ts +2 -2
- package/dist/features/crud/operations/operations/Update.js +4 -5
- package/dist/features/crud/operations/operations/Update.js.map +1 -1
- package/dist/features/crud/operations/operations/UpdateBulk.d.ts +2 -2
- package/dist/features/crud/operations/operations/UpdateBulk.js +4 -5
- package/dist/features/crud/operations/operations/UpdateBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/Upsert.d.ts +2 -2
- package/dist/features/crud/operations/operations/Upsert.js +4 -5
- package/dist/features/crud/operations/operations/Upsert.js.map +1 -1
- package/dist/features/crud/operations/operations/UpsertBulk.d.ts +2 -2
- package/dist/features/crud/operations/operations/UpsertBulk.js +4 -5
- package/dist/features/crud/operations/operations/UpsertBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/index.d.ts +1 -0
- package/dist/features/crud/operations/operations/index.js +1 -0
- package/dist/features/crud/operations/operations/index.js.map +1 -1
- package/dist/features/crud/operations/templates/FullQuery.d.ts +2 -1
- package/dist/features/crud/operations/templates/FullQuery.js +2 -1
- package/dist/features/crud/operations/templates/FullQuery.js.map +1 -1
- package/dist/features/crud/sync/compose/useCrudSync.js +5 -5
- package/dist/features/crud/sync/compose/useCrudSync.js.map +1 -1
- package/dist/features/crud/sync/middlewares/PushCrudEvent.js +2 -2
- package/dist/features/crud/sync/middlewares/PushCrudEvent.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +8 -0
- package/dist/main.js.map +1 -1
- package/dist/micro/auth/AuthApi.d.ts +22 -0
- package/dist/micro/auth/AuthApi.js +128 -0
- package/dist/micro/auth/AuthApi.js.map +1 -0
- package/dist/micro/auth/WorkspaceApi.d.ts +10 -0
- package/dist/micro/auth/WorkspaceApi.js +32 -0
- package/dist/micro/auth/WorkspaceApi.js.map +1 -0
- package/dist/micro/auth/index.d.ts +1 -0
- package/dist/micro/auth/index.js +18 -0
- package/dist/micro/auth/index.js.map +1 -0
- package/dist/micro/auth/types/InitWorkspace.d.ts +8 -0
- package/dist/micro/auth/types/InitWorkspace.js +3 -0
- package/dist/micro/auth/types/InitWorkspace.js.map +1 -0
- package/dist/micro/auth/types/index.d.ts +1 -0
- package/dist/micro/auth/types/index.js +18 -0
- package/dist/micro/auth/types/index.js.map +1 -0
- package/dist/micro/index.d.ts +4 -0
- package/dist/micro/index.js +21 -0
- package/dist/micro/index.js.map +1 -0
- package/dist/micro/init/WorkspaceApi.d.ts +10 -0
- package/dist/micro/init/WorkspaceApi.js +27 -0
- package/dist/micro/init/WorkspaceApi.js.map +1 -0
- package/dist/micro/init/types/InitWorkspace.d.ts +8 -0
- package/dist/micro/init/types/InitWorkspace.js +3 -0
- package/dist/micro/init/types/InitWorkspace.js.map +1 -0
- package/dist/micro/query/FieldApi.d.ts +12 -0
- package/dist/micro/query/FieldApi.js +69 -0
- package/dist/micro/query/FieldApi.js.map +1 -0
- package/dist/micro/query/RecordApi.d.ts +16 -0
- package/dist/micro/query/RecordApi.js +24 -0
- package/dist/micro/query/RecordApi.js.map +1 -0
- package/dist/micro/query/SObjectApi.d.ts +8 -0
- package/dist/micro/query/SObjectApi.js +30 -0
- package/dist/micro/query/SObjectApi.js.map +1 -0
- package/dist/micro/query/error/ObjectApiError.d.ts +3 -0
- package/dist/micro/query/error/ObjectApiError.js +10 -0
- package/dist/micro/query/error/ObjectApiError.js.map +1 -0
- package/dist/micro/query/error/index.d.ts +1 -0
- package/dist/micro/query/error/index.js +18 -0
- package/dist/micro/query/error/index.js.map +1 -0
- package/dist/micro/query/index.d.ts +1 -0
- package/dist/micro/query/index.js +18 -0
- package/dist/micro/query/index.js.map +1 -0
- package/dist/micro/query/record/index.d.ts +2 -0
- package/dist/micro/query/record/index.js +19 -0
- package/dist/micro/query/record/index.js.map +1 -0
- package/dist/micro/query/types/FieldType.d.ts +9 -0
- package/dist/micro/query/types/FieldType.js +14 -0
- package/dist/micro/query/types/FieldType.js.map +1 -0
- package/dist/micro/query/types/PicklistValue.d.ts +4 -0
- package/dist/micro/query/types/PicklistValue.js +3 -0
- package/dist/micro/query/types/PicklistValue.js.map +1 -0
- package/dist/micro/query/types/SObject.d.ts +7 -0
- package/dist/micro/query/types/SObject.js +3 -0
- package/dist/micro/query/types/SObject.js.map +1 -0
- package/dist/micro/query/types/SObjectField.d.ts +30 -0
- package/dist/micro/query/types/SObjectField.js +3 -0
- package/dist/micro/query/types/SObjectField.js.map +1 -0
- package/dist/micro/query/types/SchemaObjectNames.d.ts +4 -0
- package/dist/micro/query/types/SchemaObjectNames.js +8 -0
- package/dist/micro/query/types/SchemaObjectNames.js.map +1 -0
- package/dist/micro/query/types/index.d.ts +4 -0
- package/dist/micro/query/types/index.js +21 -0
- package/dist/micro/query/types/index.js.map +1 -0
- package/dist/micro/security/PermissionApi.d.ts +6 -0
- package/dist/micro/security/PermissionApi.js +44 -0
- package/dist/micro/security/PermissionApi.js.map +1 -0
- package/dist/micro/security/PermissionCategoryApi.d.ts +5 -0
- package/dist/micro/security/PermissionCategoryApi.js +30 -0
- package/dist/micro/security/PermissionCategoryApi.js.map +1 -0
- package/dist/micro/security/TeamApi.d.ts +7 -0
- package/dist/micro/security/TeamApi.js +45 -0
- package/dist/micro/security/TeamApi.js.map +1 -0
- package/dist/micro/security/index.d.ts +1 -0
- package/dist/micro/security/index.js +18 -0
- package/dist/micro/security/index.js.map +1 -0
- package/dist/micro/security/types/IPermission.d.ts +10 -0
- package/dist/micro/security/types/IPermission.js +3 -0
- package/dist/micro/security/types/IPermission.js.map +1 -0
- package/dist/micro/security/types/IPermissionAssignment.d.ts +6 -0
- package/dist/micro/security/types/IPermissionAssignment.js +3 -0
- package/dist/micro/security/types/IPermissionAssignment.js.map +1 -0
- package/dist/micro/security/types/IPermissionCategory.d.ts +5 -0
- package/dist/micro/security/types/IPermissionCategory.js +3 -0
- package/dist/micro/security/types/IPermissionCategory.js.map +1 -0
- package/dist/micro/security/types/IPermissionDefinition.d.ts +6 -0
- package/dist/micro/security/types/IPermissionDefinition.js +3 -0
- package/dist/micro/security/types/IPermissionDefinition.js.map +1 -0
- package/dist/micro/security/types/IPermissionGroup.d.ts +4 -0
- package/dist/micro/security/types/IPermissionGroup.js +3 -0
- package/dist/micro/security/types/IPermissionGroup.js.map +1 -0
- package/dist/micro/security/types/IPermissionSet.d.ts +6 -0
- package/dist/micro/security/types/IPermissionSet.js +3 -0
- package/dist/micro/security/types/IPermissionSet.js.map +1 -0
- package/dist/micro/security/types/SecurityObjectNames.d.ts +8 -0
- package/dist/micro/security/types/SecurityObjectNames.js +12 -0
- package/dist/micro/security/types/SecurityObjectNames.js.map +1 -0
- package/dist/micro/security/types/Team.d.ts +7 -0
- package/dist/micro/security/types/Team.js +3 -0
- package/dist/micro/security/types/Team.js.map +1 -0
- package/dist/micro/security/types/TeamAssignment.d.ts +4 -0
- package/dist/micro/security/types/TeamAssignment.js +3 -0
- package/dist/micro/security/types/TeamAssignment.js.map +1 -0
- package/dist/micro/security/types/index.d.ts +8 -0
- package/dist/micro/security/types/index.js +25 -0
- package/dist/micro/security/types/index.js.map +1 -0
- package/dist/micro/workspace/ModuleApi.d.ts +8 -0
- package/dist/micro/workspace/ModuleApi.js +58 -0
- package/dist/micro/workspace/ModuleApi.js.map +1 -0
- package/dist/micro/workspace/index.d.ts +1 -0
- package/dist/micro/workspace/index.js +18 -0
- package/dist/micro/workspace/index.js.map +1 -0
- package/dist/micro/workspace/types/CreateUser.d.ts +5 -0
- package/dist/micro/workspace/types/CreateUser.js +3 -0
- package/dist/micro/workspace/types/CreateUser.js.map +1 -0
- package/dist/micro/workspace/types/EUserStatus.d.ts +5 -0
- package/dist/micro/workspace/types/EUserStatus.js +10 -0
- package/dist/micro/workspace/types/EUserStatus.js.map +1 -0
- package/dist/micro/workspace/types/Module.d.ts +9 -0
- package/dist/micro/workspace/types/Module.js +3 -0
- package/dist/micro/workspace/types/Module.js.map +1 -0
- package/dist/micro/workspace/types/ModuleAction.d.ts +4 -0
- package/dist/micro/workspace/types/ModuleAction.js +3 -0
- package/dist/micro/workspace/types/ModuleAction.js.map +1 -0
- package/dist/micro/workspace/types/User.d.ts +8 -0
- package/dist/micro/workspace/types/User.js +3 -0
- package/dist/micro/workspace/types/User.js.map +1 -0
- package/dist/micro/workspace/types/index.d.ts +5 -0
- package/dist/micro/workspace/types/index.js +22 -0
- package/dist/micro/workspace/types/index.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/Constructor.d.ts +1 -0
- package/dist/types/Constructor.js +3 -0
- package/dist/types/Constructor.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +3 -5
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AuthApi = void 0;
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
|
+
const config_1 = require("../../config");
|
|
15
|
+
class AuthApi extends features_1.BindThis {
|
|
16
|
+
getTokensByCredentials(user) {
|
|
17
|
+
return {
|
|
18
|
+
baseURL: config_1.ApiConfigs.api.authUrl,
|
|
19
|
+
url: '/user/signin',
|
|
20
|
+
method: 'POST',
|
|
21
|
+
data: user
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
getAuthCodeByCredentials(user) {
|
|
25
|
+
return {
|
|
26
|
+
baseURL: config_1.ApiConfigs.api.authUrl,
|
|
27
|
+
url: '/user/signin/code',
|
|
28
|
+
method: 'POST',
|
|
29
|
+
data: user
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
getTokensByAuthCode(code) {
|
|
33
|
+
return {
|
|
34
|
+
baseURL: config_1.ApiConfigs.api.authUrl,
|
|
35
|
+
url: `/user/signin/code/${code}`,
|
|
36
|
+
method: 'GET',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
activate(user) {
|
|
40
|
+
return {
|
|
41
|
+
baseURL: config_1.ApiConfigs.api.authUrl,
|
|
42
|
+
url: '/user/signup/code',
|
|
43
|
+
method: 'POST',
|
|
44
|
+
data: user
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
refresh(refreshToken) {
|
|
48
|
+
return {
|
|
49
|
+
baseURL: config_1.ApiConfigs.api.authUrl,
|
|
50
|
+
url: '/user/refresh',
|
|
51
|
+
method: 'POST',
|
|
52
|
+
data: { refreshToken }
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
resetPassword(userId) {
|
|
56
|
+
return {
|
|
57
|
+
baseURL: config_1.ApiConfigs.api.authUrl,
|
|
58
|
+
url: `/user/password/reset/${userId}`,
|
|
59
|
+
method: 'POST',
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
resetPasswordConfirm(confirm) {
|
|
63
|
+
return {
|
|
64
|
+
baseURL: config_1.ApiConfigs.api.authUrl,
|
|
65
|
+
url: `/user/password/reset`,
|
|
66
|
+
method: 'POST',
|
|
67
|
+
data: confirm
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
changePassword(user) {
|
|
71
|
+
return {
|
|
72
|
+
baseURL: config_1.ApiConfigs.api.authUrl,
|
|
73
|
+
url: `/user/password/change`,
|
|
74
|
+
method: 'POST',
|
|
75
|
+
data: user
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, features_1.Calloutable)(),
|
|
81
|
+
__metadata("design:type", Function),
|
|
82
|
+
__metadata("design:paramtypes", [Object]),
|
|
83
|
+
__metadata("design:returntype", void 0)
|
|
84
|
+
], AuthApi.prototype, "getTokensByCredentials", null);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, features_1.Calloutable)(),
|
|
87
|
+
__metadata("design:type", Function),
|
|
88
|
+
__metadata("design:paramtypes", [Object]),
|
|
89
|
+
__metadata("design:returntype", void 0)
|
|
90
|
+
], AuthApi.prototype, "getAuthCodeByCredentials", null);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, features_1.Calloutable)(),
|
|
93
|
+
__metadata("design:type", Function),
|
|
94
|
+
__metadata("design:paramtypes", [String]),
|
|
95
|
+
__metadata("design:returntype", void 0)
|
|
96
|
+
], AuthApi.prototype, "getTokensByAuthCode", null);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, features_1.Calloutable)(),
|
|
99
|
+
__metadata("design:type", Function),
|
|
100
|
+
__metadata("design:paramtypes", [Object]),
|
|
101
|
+
__metadata("design:returntype", void 0)
|
|
102
|
+
], AuthApi.prototype, "activate", null);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, features_1.Calloutable)(),
|
|
105
|
+
__metadata("design:type", Function),
|
|
106
|
+
__metadata("design:paramtypes", [String]),
|
|
107
|
+
__metadata("design:returntype", void 0)
|
|
108
|
+
], AuthApi.prototype, "refresh", null);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, features_1.Calloutable)(),
|
|
111
|
+
__metadata("design:type", Function),
|
|
112
|
+
__metadata("design:paramtypes", [String]),
|
|
113
|
+
__metadata("design:returntype", void 0)
|
|
114
|
+
], AuthApi.prototype, "resetPassword", null);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, features_1.Calloutable)(),
|
|
117
|
+
__metadata("design:type", Function),
|
|
118
|
+
__metadata("design:paramtypes", [Object]),
|
|
119
|
+
__metadata("design:returntype", void 0)
|
|
120
|
+
], AuthApi.prototype, "resetPasswordConfirm", null);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, features_1.Calloutable)(),
|
|
123
|
+
__metadata("design:type", Function),
|
|
124
|
+
__metadata("design:paramtypes", [Object]),
|
|
125
|
+
__metadata("design:returntype", void 0)
|
|
126
|
+
], AuthApi.prototype, "changePassword", null);
|
|
127
|
+
exports.AuthApi = AuthApi;
|
|
128
|
+
//# sourceMappingURL=AuthApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthApi.js","sourceRoot":"","sources":["../../../src/micro/auth/AuthApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAAqD;AAErD,yCAAwC;AAExC,MAAa,OAAQ,SAAQ,mBAAQ;IAG5B,sBAAsB,CAAC,IAAgB;QAC5C,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,cAAc;YACnB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;IAGM,wBAAwB,CAAC,IAAgB;QAC9C,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,mBAAmB;YACxB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;IAGM,mBAAmB,CAAC,IAAY;QACrC,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,qBAAqB,IAAI,EAAE;YAChC,MAAM,EAAE,KAAK;SACQ,CAAA;IACzB,CAAC;IAGM,QAAQ,CAAC,IAAsB;QACpC,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,mBAAmB;YACxB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;IAGM,OAAO,CAAC,YAAoB;QACjC,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,eAAe;YACpB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,YAAY,EAAE;SACD,CAAA;IACzB,CAAC;IAGM,aAAa,CAAC,MAAc;QACjC,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,wBAAwB,MAAM,EAAE;YACrC,MAAM,EAAE,MAAM;SACf,CAAA;IACH,CAAC;IAGM,oBAAoB,CAAC,OAAiC;QAC3D,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,sBAAsB;YAC3B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAA;IACH,CAAC;IAGM,cAAc,CAAC,IAAwB;QAC5C,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,uBAAuB;YAC5B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;CAEF;AA9EC;IAAC,IAAA,sBAAW,GAAE;;;;qDAQb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;uDAQb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;kDAOb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;uCAQb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;sCAQb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;4CAOb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;mDAQb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;6CAQb;AA9EH,0BAgFC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BindThis } from "../../features";
|
|
2
|
+
import { InitWorkspace } from "./types";
|
|
3
|
+
export declare class WorkspaceApi extends BindThis {
|
|
4
|
+
init(workspace: InitWorkspace): {
|
|
5
|
+
baseURL: string;
|
|
6
|
+
url: string;
|
|
7
|
+
method: string;
|
|
8
|
+
data: InitWorkspace;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WorkspaceApi = void 0;
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
|
+
const config_1 = require("../../config");
|
|
15
|
+
class WorkspaceApi extends features_1.BindThis {
|
|
16
|
+
init(workspace) {
|
|
17
|
+
return {
|
|
18
|
+
baseURL: config_1.ApiConfigs.api.initUrl,
|
|
19
|
+
url: '/init',
|
|
20
|
+
method: 'POST',
|
|
21
|
+
data: workspace
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, features_1.Calloutable)(),
|
|
27
|
+
__metadata("design:type", Function),
|
|
28
|
+
__metadata("design:paramtypes", [Object]),
|
|
29
|
+
__metadata("design:returntype", void 0)
|
|
30
|
+
], WorkspaceApi.prototype, "init", null);
|
|
31
|
+
exports.WorkspaceApi = WorkspaceApi;
|
|
32
|
+
//# sourceMappingURL=WorkspaceApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceApi.js","sourceRoot":"","sources":["../../../src/micro/auth/WorkspaceApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqD;AACrD,yCAAwC;AAGxC,MAAa,YAAa,SAAQ,mBAAQ;IAGjC,IAAI,CAAC,SAAwB;QAClC,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,OAAO;YACZ,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;CAEF;AAVC;IAAC,IAAA,sBAAW,GAAE;;;;wCAQb;AAVH,oCAYC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -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("./types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/micro/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitWorkspace.js","sourceRoot":"","sources":["../../../../src/micro/auth/types/InitWorkspace.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InitWorkspace';
|
|
@@ -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("./InitWorkspace"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/micro/auth/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./auth"), exports);
|
|
18
|
+
__exportStar(require("./query"), exports);
|
|
19
|
+
__exportStar(require("./workspace"), exports);
|
|
20
|
+
__exportStar(require("./security"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/micro/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BindThis } from "../../features";
|
|
2
|
+
import { InitWorkspace } from "./types/InitWorkspace";
|
|
3
|
+
export declare class WorkspaceApi extends BindThis {
|
|
4
|
+
init(workspace: InitWorkspace): {
|
|
5
|
+
baseURL: string;
|
|
6
|
+
url: string;
|
|
7
|
+
method: string;
|
|
8
|
+
data: InitWorkspace;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.WorkspaceApi = void 0;
|
|
10
|
+
const features_1 = require("../../features");
|
|
11
|
+
const features_2 = require("../../features");
|
|
12
|
+
const config_1 = require("../../config");
|
|
13
|
+
let WorkspaceApi = class WorkspaceApi extends features_1.BindThis {
|
|
14
|
+
init(workspace) {
|
|
15
|
+
return {
|
|
16
|
+
baseURL: config_1.ApiConfigs.api.initUrl,
|
|
17
|
+
url: '/init',
|
|
18
|
+
method: 'POST',
|
|
19
|
+
data: workspace
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
WorkspaceApi = __decorate([
|
|
24
|
+
(0, features_2.Calloutable)()
|
|
25
|
+
], WorkspaceApi);
|
|
26
|
+
exports.WorkspaceApi = WorkspaceApi;
|
|
27
|
+
//# sourceMappingURL=WorkspaceApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceApi.js","sourceRoot":"","sources":["../../../src/micro/init/WorkspaceApi.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAAwC;AACxC,6CAA2C;AAC3C,yCAAwC;AAIjC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,mBAAQ;IAEjC,IAAI,CAAC,SAAwB;QAClC,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,OAAO;YACZ,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;CAEF,CAAA;AAXY,YAAY;IADxB,IAAA,sBAAW,GAAE;GACD,YAAY,CAWxB;AAXY,oCAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitWorkspace.js","sourceRoot":"","sources":["../../../../src/micro/init/types/InitWorkspace.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractCRUDApi } from "../../features";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
import { SObjectField } from "./types";
|
|
4
|
+
export declare class FieldApi extends AbstractCRUDApi {
|
|
5
|
+
create(field: SObjectField): AxiosRequestConfig;
|
|
6
|
+
getAllByObjectId(objectId: string): AxiosRequestConfig<any>;
|
|
7
|
+
getAllByObjectApiName(apiName: string): {
|
|
8
|
+
baseURL: string;
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
deleteAllByObjectId(objectId: string): AxiosRequestConfig<any>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FieldApi = void 0;
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
|
+
class FieldApi extends features_1.AbstractCRUDApi {
|
|
15
|
+
create(field) {
|
|
16
|
+
return {
|
|
17
|
+
baseURL: this.apiUrl,
|
|
18
|
+
url: `/${this.objectName}/${field.objectId}`,
|
|
19
|
+
method: 'POST',
|
|
20
|
+
data: field
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
getAllByObjectId(objectId) {
|
|
24
|
+
return {
|
|
25
|
+
baseURL: this.apiUrl,
|
|
26
|
+
url: `/${this.objectName}/object/${objectId}`,
|
|
27
|
+
method: 'GET'
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
getAllByObjectApiName(apiName) {
|
|
31
|
+
return {
|
|
32
|
+
baseURL: this.apiUrl,
|
|
33
|
+
url: `/${this.objectName}/object/apiName/${apiName}`,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
deleteAllByObjectId(objectId) {
|
|
37
|
+
return {
|
|
38
|
+
baseURL: this.apiUrl,
|
|
39
|
+
url: `/${this.objectName}/object/${objectId}/all`,
|
|
40
|
+
method: 'DELETE'
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, features_1.Calloutable)(),
|
|
46
|
+
__metadata("design:type", Function),
|
|
47
|
+
__metadata("design:paramtypes", [Object]),
|
|
48
|
+
__metadata("design:returntype", Object)
|
|
49
|
+
], FieldApi.prototype, "create", null);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, features_1.Calloutable)(),
|
|
52
|
+
__metadata("design:type", Function),
|
|
53
|
+
__metadata("design:paramtypes", [String]),
|
|
54
|
+
__metadata("design:returntype", void 0)
|
|
55
|
+
], FieldApi.prototype, "getAllByObjectId", null);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, features_1.Calloutable)(),
|
|
58
|
+
__metadata("design:type", Function),
|
|
59
|
+
__metadata("design:paramtypes", [String]),
|
|
60
|
+
__metadata("design:returntype", void 0)
|
|
61
|
+
], FieldApi.prototype, "getAllByObjectApiName", null);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, features_1.Calloutable)(),
|
|
64
|
+
__metadata("design:type", Function),
|
|
65
|
+
__metadata("design:paramtypes", [String]),
|
|
66
|
+
__metadata("design:returntype", void 0)
|
|
67
|
+
], FieldApi.prototype, "deleteAllByObjectId", null);
|
|
68
|
+
exports.FieldApi = FieldApi;
|
|
69
|
+
//# sourceMappingURL=FieldApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldApi.js","sourceRoot":"","sources":["../../../src/micro/query/FieldApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4D;AAI5D,MAAa,QAAS,SAAQ,0BAAe;IAGpC,MAAM,CAAC,KAAmB;QAC/B,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,KAAK,CAAC,QAAQ,EAAE;YAC5C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,KAAK;SACU,CAAA;IACzB,CAAC;IAGM,gBAAgB,CAAC,QAAgB;QACtC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,WAAW,QAAQ,EAAE;YAC7C,MAAM,EAAE,KAAK;SACQ,CAAA;IACzB,CAAC;IAGM,qBAAqB,CAAC,OAAe;QAC1C,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,mBAAmB,OAAO,EAAE;SACrD,CAAA;IACH,CAAC;IAGM,mBAAmB,CAAC,QAAgB;QACzC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,WAAW,QAAQ,MAAM;YACjD,MAAM,EAAE,QAAQ;SACK,CAAA;IACzB,CAAC;CAEF;AApCC;IAAC,IAAA,sBAAW,GAAE;;;;sCAQb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;gDAOb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;qDAMb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;mDAOb;AApCH,4BAsCC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiConfigs } from "../../config";
|
|
2
|
+
export declare class RecordApi {
|
|
3
|
+
private static readonly singleton;
|
|
4
|
+
static forObject(objectApiName: string, baseUrl: keyof typeof ApiConfigs.api): {
|
|
5
|
+
getApiUrl(): any;
|
|
6
|
+
getObjectName(): string;
|
|
7
|
+
getAll(): import("axios").AxiosRequestConfig<any>;
|
|
8
|
+
readonly objectName: string;
|
|
9
|
+
readonly apiUrl: string;
|
|
10
|
+
getById(entityId: string): import("axios").AxiosRequestConfig<any>;
|
|
11
|
+
getByFilters(filter?: any, options?: any): import("axios").AxiosRequestConfig<any>;
|
|
12
|
+
create(entity: any): import("axios").AxiosRequestConfig<any>;
|
|
13
|
+
update(entity: any): import("axios").AxiosRequestConfig<any>;
|
|
14
|
+
deleteById(entityId: string): import("axios").AxiosRequestConfig<any>;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecordApi = void 0;
|
|
4
|
+
const compose_1 = require("../../compose");
|
|
5
|
+
const features_1 = require("../../features");
|
|
6
|
+
const error_1 = require("./error");
|
|
7
|
+
const config_1 = require("../../config");
|
|
8
|
+
const ts_mixer_1 = require("ts-mixer");
|
|
9
|
+
const GetByFilters_1 = require("../../features/crud/operations/operations/GetByFilters");
|
|
10
|
+
class RecordApi {
|
|
11
|
+
static forObject(objectApiName, baseUrl) {
|
|
12
|
+
if (!(objectApiName && baseUrl)) {
|
|
13
|
+
throw new error_1.ObjectApiError('Object Api Name or Base URL is not defined');
|
|
14
|
+
}
|
|
15
|
+
const definition = class extends (0, ts_mixer_1.Mixin)(features_1.GetAll, features_1.GetById, GetByFilters_1.GetByFilters, features_1.Create, features_1.Update, features_1.DeleteById) {
|
|
16
|
+
getApiUrl() { return config_1.ApiConfigs[baseUrl]; }
|
|
17
|
+
getObjectName() { return objectApiName; }
|
|
18
|
+
};
|
|
19
|
+
return RecordApi.singleton.getInstance(definition);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.RecordApi = RecordApi;
|
|
23
|
+
RecordApi.singleton = (0, compose_1.useSingleton)();
|
|
24
|
+
//# sourceMappingURL=RecordApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecordApi.js","sourceRoot":"","sources":["../../../src/micro/query/RecordApi.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,6CAA2E;AAC3E,mCAAuC;AACvC,yCAAwC;AACxC,uCAA+B;AAC/B,yFAAoF;AAEpF,MAAa,SAAS;IAIpB,MAAM,CAAC,SAAS,CAAC,aAAqB,EAAE,OAAoC;QAC1E,IAAI,CAAC,CAAC,aAAa,IAAI,OAAO,CAAC,EAAE;YAC/B,MAAM,IAAI,sBAAc,CAAC,4CAA4C,CAAC,CAAC;SACxE;QAED,MAAM,UAAU,GAAG,KAAM,SAAQ,IAAA,gBAAK,EAAC,iBAAM,EAAE,kBAAO,EAAE,2BAAY,EAAE,iBAAM,EAAE,iBAAM,EAAE,qBAAU,CAAC;YAC/E,SAAS,KAAK,OAAO,mBAAU,CAAC,OAAO,CAAC,CAAA,CAAC,CAAC;YAE1C,aAAa,KAAK,OAAO,aAAa,CAAA,CAAC,CAAC;SACzD,CAAA;QAED,OAAO,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;;AAhBH,8BAkBC;AAhByB,mBAAS,GAAG,IAAA,sBAAY,GAAE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SObjectApi = void 0;
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
|
+
class SObjectApi extends features_1.AbstractCRUDApi {
|
|
15
|
+
getByApiName(apiName) {
|
|
16
|
+
return {
|
|
17
|
+
baseUrl: this.apiUrl,
|
|
18
|
+
url: `/${this.objectName}/apiName/${apiName}`,
|
|
19
|
+
method: "GET",
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, features_1.Calloutable)(),
|
|
25
|
+
__metadata("design:type", Function),
|
|
26
|
+
__metadata("design:paramtypes", [String]),
|
|
27
|
+
__metadata("design:returntype", void 0)
|
|
28
|
+
], SObjectApi.prototype, "getByApiName", null);
|
|
29
|
+
exports.SObjectApi = SObjectApi;
|
|
30
|
+
//# sourceMappingURL=SObjectApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SObjectApi.js","sourceRoot":"","sources":["../../../src/micro/query/SObjectApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4D;AAE5D,MAAa,UAAc,SAAQ,0BAAe;IAGzC,YAAY,CAAC,OAAe;QACjC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,YAAY,OAAO,EAAE;YAC7C,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;CAEF;AATC;IAAC,IAAA,sBAAW,GAAE;;;;8CAOb;AATH,gCAWC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectApiError = void 0;
|
|
4
|
+
class ObjectApiError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.ObjectApiError = ObjectApiError;
|
|
10
|
+
//# sourceMappingURL=ObjectApiError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectApiError.js","sourceRoot":"","sources":["../../../../src/micro/query/error/ObjectApiError.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;CACF;AAJD,wCAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ObjectApiError';
|
|
@@ -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("./ObjectApiError"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/micro/query/error/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -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("./types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/micro/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -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("../RecordApi"), exports);
|
|
18
|
+
__exportStar(require("../error"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/micro/query/record/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB"}
|