@aptly-as/types 1.5.0 → 1.6.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/core/api.d.ts +7 -0
- package/core/api.ts +8 -0
- package/core/app.d.ts +27 -0
- package/core/app.js +3 -0
- package/core/app.js.map +1 -0
- package/core/app.ts +32 -0
- package/core/fields.d.ts +17 -0
- package/core/fields.js +3 -0
- package/core/fields.js.map +1 -0
- package/core/fields.ts +19 -0
- package/core/index.d.ts +5 -0
- package/core/index.js +19 -7
- package/core/index.js.map +1 -1
- package/core/index.ts +5 -0
- package/core/permission.d.ts +109 -2
- package/core/permission.js +93 -0
- package/core/permission.js.map +1 -1
- package/core/permission.ts +115 -1
- package/core/scope.d.ts +12 -0
- package/core/scope.js +9 -0
- package/core/scope.js.map +1 -0
- package/core/scope.ts +12 -0
- package/enums/document.d.ts +1 -0
- package/enums/document.js +2 -0
- package/enums/document.js.map +1 -1
- package/enums/document.ts +1 -0
- package/enums/fields.d.ts +25 -0
- package/enums/fields.js +30 -0
- package/enums/fields.js.map +1 -0
- package/enums/fields.ts +26 -0
- package/enums/index.d.ts +1 -0
- package/enums/index.js +15 -6
- package/enums/index.js.map +1 -1
- package/enums/index.ts +1 -0
- package/enums/unit-template.js +1 -0
- package/enums/unit-template.js.map +1 -1
- package/enums/webhook.d.ts +3 -1
- package/enums/webhook.js +3 -0
- package/enums/webhook.js.map +1 -1
- package/enums/webhook.ts +3 -1
- package/index.js +13 -6
- package/index.js.map +1 -1
- package/models/app.d.ts +66 -0
- package/models/app.js +28 -0
- package/models/app.js.map +1 -0
- package/models/app.ts +75 -0
- package/models/client.d.ts +2 -1
- package/models/client.ts +2 -1
- package/models/document.d.ts +3 -3
- package/models/document.ts +3 -3
- package/models/index.d.ts +1 -0
- package/models/index.js +38 -30
- package/models/index.js.map +1 -1
- package/models/index.ts +1 -0
- package/models/media.d.ts +4 -0
- package/models/media.ts +5 -0
- package/models/organization.d.ts +9 -2
- package/models/organization.ts +22 -4
- package/models/page.d.ts +1 -1
- package/models/page.ts +1 -1
- package/models/product.d.ts +1 -0
- package/models/product.ts +1 -0
- package/models/project.d.ts +3 -3
- package/models/project.ts +3 -3
- package/models/unit-email.js +1 -0
- package/models/unit-email.js.map +1 -1
- package/models/unit-template.d.ts +1 -1
- package/models/unit-template.ts +1 -1
- package/models/unit.d.ts +3 -3
- package/models/unit.ts +3 -3
- package/models/webhook-event.d.ts +5 -2
- package/models/webhook-event.ts +5 -2
- package/models/webhook.d.ts +1 -0
- package/models/webhook.ts +1 -0
- package/package.json +8 -6
package/enums/document.ts
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum AptlyFieldType {
|
|
2
|
+
Object = "object",
|
|
3
|
+
Images = "images",
|
|
4
|
+
Image = "image",
|
|
5
|
+
Text = "text",
|
|
6
|
+
Password = "password",
|
|
7
|
+
TextArea = "text-area",
|
|
8
|
+
Email = "email",
|
|
9
|
+
Number = "number",
|
|
10
|
+
Date = "date",
|
|
11
|
+
DateTime = "date-time",
|
|
12
|
+
Color = "color",
|
|
13
|
+
Select = "select",
|
|
14
|
+
File = "file",
|
|
15
|
+
Files = "files",
|
|
16
|
+
Documents = "documents",
|
|
17
|
+
DraftJS = "draft-js",
|
|
18
|
+
Reference = "reference",
|
|
19
|
+
Custom = "custom",
|
|
20
|
+
BulkIds = "bulk-ids",
|
|
21
|
+
Hidden = "hidden",
|
|
22
|
+
Sort = "sort",
|
|
23
|
+
Switch = "switch",
|
|
24
|
+
Checkbox = "checkbox"
|
|
25
|
+
}
|
package/enums/fields.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AptlyFieldType = void 0;
|
|
4
|
+
var AptlyFieldType;
|
|
5
|
+
(function (AptlyFieldType) {
|
|
6
|
+
AptlyFieldType["Object"] = "object";
|
|
7
|
+
AptlyFieldType["Images"] = "images";
|
|
8
|
+
AptlyFieldType["Image"] = "image";
|
|
9
|
+
AptlyFieldType["Text"] = "text";
|
|
10
|
+
AptlyFieldType["Password"] = "password";
|
|
11
|
+
AptlyFieldType["TextArea"] = "text-area";
|
|
12
|
+
AptlyFieldType["Email"] = "email";
|
|
13
|
+
AptlyFieldType["Number"] = "number";
|
|
14
|
+
AptlyFieldType["Date"] = "date";
|
|
15
|
+
AptlyFieldType["DateTime"] = "date-time";
|
|
16
|
+
AptlyFieldType["Color"] = "color";
|
|
17
|
+
AptlyFieldType["Select"] = "select";
|
|
18
|
+
AptlyFieldType["File"] = "file";
|
|
19
|
+
AptlyFieldType["Files"] = "files";
|
|
20
|
+
AptlyFieldType["Documents"] = "documents";
|
|
21
|
+
AptlyFieldType["DraftJS"] = "draft-js";
|
|
22
|
+
AptlyFieldType["Reference"] = "reference";
|
|
23
|
+
AptlyFieldType["Custom"] = "custom";
|
|
24
|
+
AptlyFieldType["BulkIds"] = "bulk-ids";
|
|
25
|
+
AptlyFieldType["Hidden"] = "hidden";
|
|
26
|
+
AptlyFieldType["Sort"] = "sort";
|
|
27
|
+
AptlyFieldType["Switch"] = "switch";
|
|
28
|
+
AptlyFieldType["Checkbox"] = "checkbox";
|
|
29
|
+
})(AptlyFieldType = exports.AptlyFieldType || (exports.AptlyFieldType = {}));
|
|
30
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["fields.ts"],"names":[],"mappings":";;;AACA,IAAY,cAwBX;AAxBD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,+BAAa,CAAA;IACb,uCAAqB,CAAA;IACrB,wCAAsB,CAAA;IACtB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,+BAAa,CAAA;IACb,wCAAsB,CAAA;IACtB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,+BAAa,CAAA;IACb,iCAAe,CAAA;IACf,yCAAuB,CAAA;IACvB,sCAAoB,CAAA;IACpB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;IACjB,sCAAoB,CAAA;IACpB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;IACb,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;AACvB,CAAC,EAxBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAwBzB"}
|
package/enums/fields.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
export enum AptlyFieldType {
|
|
3
|
+
Object = 'object',
|
|
4
|
+
Images = 'images',
|
|
5
|
+
Image = 'image',
|
|
6
|
+
Text = 'text',
|
|
7
|
+
Password = 'password',
|
|
8
|
+
TextArea = 'text-area',
|
|
9
|
+
Email = 'email',
|
|
10
|
+
Number = 'number',
|
|
11
|
+
Date = 'date',
|
|
12
|
+
DateTime = 'date-time',
|
|
13
|
+
Color = 'color',
|
|
14
|
+
Select = 'select',
|
|
15
|
+
File = 'file',
|
|
16
|
+
Files = 'files',
|
|
17
|
+
Documents = 'documents',
|
|
18
|
+
DraftJS = 'draft-js',
|
|
19
|
+
Reference = 'reference',
|
|
20
|
+
Custom = 'custom',
|
|
21
|
+
BulkIds = 'bulk-ids',
|
|
22
|
+
Hidden = 'hidden',
|
|
23
|
+
Sort = 'sort',
|
|
24
|
+
Switch = 'switch',
|
|
25
|
+
Checkbox = 'checkbox',
|
|
26
|
+
}
|
package/enums/index.d.ts
CHANGED
package/enums/index.js
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
exports.AptlyIcon = exports.AptlyQueueDownloadStatus = exports.AptlyQueueDownloadType = exports.AptlyErrorCode = exports.AptlySignageSignerRef = exports.AptlyUnitItemParamKey = exports.AptlyInquiryParticipantRole = exports.AptlyInquiryStatus = exports.AptlyInquiryType = exports.AptlyCategorySectionDisplayType = exports.AptlyIntegrationLevel = exports.AptlyIntegration = exports.AptlyUnitStatus = exports.AptlyCloudinaryResourceType = exports.AptlyPageSectionType = exports.AptlyOrderStatus = void 0;
|
|
14
|
+
__exportStar(require("./document"), exports);
|
|
15
|
+
__exportStar(require("./fields"), exports);
|
|
16
|
+
__exportStar(require("./unit-template"), exports);
|
|
17
|
+
__exportStar(require("./webhook"), exports);
|
|
9
18
|
var AptlyOrderStatus;
|
|
10
19
|
(function (AptlyOrderStatus) {
|
|
11
20
|
AptlyOrderStatus["NotSigned"] = "notSigned";
|
package/enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"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"}
|
package/enums/index.ts
CHANGED
package/enums/unit-template.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AptlyUnitTemplateCategorySectionProductMeasureUnitType = exports.AptlyUnitTemplateCategorySectionProductParamKey = void 0;
|
|
3
4
|
var AptlyUnitTemplateCategorySectionProductParamKey;
|
|
4
5
|
(function (AptlyUnitTemplateCategorySectionProductParamKey) {
|
|
5
6
|
AptlyUnitTemplateCategorySectionProductParamKey["TextContent"] = "textContent";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-template.js","sourceRoot":"","sources":["unit-template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unit-template.js","sourceRoot":"","sources":["unit-template.ts"],"names":[],"mappings":";;;AAAA,IAAY,+CAIX;AAJD,WAAY,+CAA+C;IACzD,8EAA2B,CAAA;IAC3B,wEAAqB,CAAA;IACrB,kEAAe,CAAA;AACjB,CAAC,EAJW,+CAA+C,GAA/C,uDAA+C,KAA/C,uDAA+C,QAI1D;AAED,IAAY,sDAIX;AAJD,WAAY,sDAAsD;IAChE,uEAAa,CAAA;IACb,qEAAW,CAAA;IACX,mEAAS,CAAA;AACX,CAAC,EAJW,sDAAsD,GAAtD,8DAAsD,KAAtD,8DAAsD,QAIjE"}
|
package/enums/webhook.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ export declare enum AptlyWebhookType {
|
|
|
5
5
|
UnitUpdated = "as.aptly.unit.updated",
|
|
6
6
|
UnitMessageNew = "as.aptly.unit.message.new",
|
|
7
7
|
UnitMessageReply = "as.aptly.unit.message.reply",
|
|
8
|
-
UnitOrderSigned = "as.aptly.unit.order.signed"
|
|
8
|
+
UnitOrderSigned = "as.aptly.unit.order.signed",
|
|
9
|
+
OrganizationAppUpdated = "as.aptly.organization.app.updated",
|
|
10
|
+
OrganizationAppDeleted = "as.aptly.organization.app.deleted"
|
|
9
11
|
}
|
|
10
12
|
export declare enum AptlyWebhookStatus {
|
|
11
13
|
Active = "active",
|
package/enums/webhook.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AptlyWebhookEventStatus = exports.AptlyWebhookStatus = exports.AptlyWebhookType = void 0;
|
|
3
4
|
var AptlyWebhookType;
|
|
4
5
|
(function (AptlyWebhookType) {
|
|
5
6
|
AptlyWebhookType["ProjectCreated"] = "as.aptly.project.created";
|
|
@@ -9,6 +10,8 @@ var AptlyWebhookType;
|
|
|
9
10
|
AptlyWebhookType["UnitMessageNew"] = "as.aptly.unit.message.new";
|
|
10
11
|
AptlyWebhookType["UnitMessageReply"] = "as.aptly.unit.message.reply";
|
|
11
12
|
AptlyWebhookType["UnitOrderSigned"] = "as.aptly.unit.order.signed";
|
|
13
|
+
AptlyWebhookType["OrganizationAppUpdated"] = "as.aptly.organization.app.updated";
|
|
14
|
+
AptlyWebhookType["OrganizationAppDeleted"] = "as.aptly.organization.app.deleted";
|
|
12
15
|
})(AptlyWebhookType = exports.AptlyWebhookType || (exports.AptlyWebhookType = {}));
|
|
13
16
|
var AptlyWebhookStatus;
|
|
14
17
|
(function (AptlyWebhookStatus) {
|
package/enums/webhook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["webhook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["webhook.ts"],"names":[],"mappings":";;;AACA,IAAY,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,+DAA2C,CAAA;IAC3C,+DAA2C,CAAA;IAC3C,yDAAqC,CAAA;IACrC,yDAAqC,CAAA;IACrC,gEAA4C,CAAA;IAC5C,oEAAgD,CAAA;IAChD,kEAA8C,CAAA;IAC9C,gFAA4D,CAAA;IAC5D,gFAA4D,CAAA;AAC9D,CAAC,EAVW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAU3B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;AACnB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,sCAAW,CAAA;IACX,kDAAuB,CAAA;IACvB,0CAAe,CAAA;IACf,4CAAiB,CAAA;AACnB,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC"}
|
package/enums/webhook.ts
CHANGED
|
@@ -6,7 +6,9 @@ export enum AptlyWebhookType {
|
|
|
6
6
|
UnitUpdated = 'as.aptly.unit.updated',
|
|
7
7
|
UnitMessageNew = 'as.aptly.unit.message.new',
|
|
8
8
|
UnitMessageReply = 'as.aptly.unit.message.reply',
|
|
9
|
-
UnitOrderSigned = 'as.aptly.unit.order.signed'
|
|
9
|
+
UnitOrderSigned = 'as.aptly.unit.order.signed',
|
|
10
|
+
OrganizationAppUpdated = 'as.aptly.organization.app.updated',
|
|
11
|
+
OrganizationAppDeleted = 'as.aptly.organization.app.deleted',
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export enum AptlyWebhookStatus {
|
package/index.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
__exportStar(require("./core"), exports);
|
|
14
|
+
__exportStar(require("./enums"), exports);
|
|
15
|
+
__exportStar(require("./models"), exports);
|
|
9
16
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB"}
|
package/models/app.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
|
+
import { AptlyWebhookType } from '../enums';
|
|
3
|
+
import { AptlyField, AptlyPermissionModel } from '../core';
|
|
4
|
+
import { AptlyMediaSrcSchema } from './media';
|
|
5
|
+
export declare type AptlyApp = AptlyAppSchema<string, string>;
|
|
6
|
+
export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
7
|
+
slug: string;
|
|
8
|
+
description: string;
|
|
9
|
+
installUrl: string;
|
|
10
|
+
redirectUris: string[];
|
|
11
|
+
clientSecret: string;
|
|
12
|
+
logo?: AptlyMediaSrcSchema<ID, DATE>;
|
|
13
|
+
banner?: AptlyMediaSrcSchema<ID, DATE>;
|
|
14
|
+
settings: AptlyAppSettingSchema<ID>[];
|
|
15
|
+
webhooks: AptlyAppWebhookSchema<ID>[];
|
|
16
|
+
proxies: AptlyAppProxySchema<ID>[];
|
|
17
|
+
injections: AptlyAppInjectionSchema<ID>[];
|
|
18
|
+
}
|
|
19
|
+
export declare type AptlyAppSetting = AptlyAppSettingSchema<string>;
|
|
20
|
+
export interface AptlyAppSettingSchema<ID> extends AptlyField {
|
|
21
|
+
_id: ID;
|
|
22
|
+
key: string;
|
|
23
|
+
defaultValue: any;
|
|
24
|
+
}
|
|
25
|
+
export interface AptlyAppWebhookSchema<ID> {
|
|
26
|
+
_id: ID;
|
|
27
|
+
types: AptlyWebhookType[];
|
|
28
|
+
url: string;
|
|
29
|
+
}
|
|
30
|
+
export declare enum AptlyOrganizationInjection {
|
|
31
|
+
Base = "",
|
|
32
|
+
Project = "project",
|
|
33
|
+
Options = "options",
|
|
34
|
+
Products = "products",
|
|
35
|
+
Content = "content",
|
|
36
|
+
Admin = "admin"
|
|
37
|
+
}
|
|
38
|
+
export declare enum AptlyProjectInjection {
|
|
39
|
+
Base = "",
|
|
40
|
+
Options = "options",
|
|
41
|
+
Products = "products",
|
|
42
|
+
Content = "content",
|
|
43
|
+
Project = "project",
|
|
44
|
+
Support = "support",
|
|
45
|
+
Admin = "admin"
|
|
46
|
+
}
|
|
47
|
+
export declare type AptlyAppInjectionMenu = `organization-${AptlyOrganizationInjection}` | `project-${AptlyProjectInjection}`;
|
|
48
|
+
export declare enum AptlyAppInjectionType {
|
|
49
|
+
Iframe = "iframe",
|
|
50
|
+
Script = "script"
|
|
51
|
+
}
|
|
52
|
+
export declare type AptlyAppInjection = AptlyAppInjectionSchema<string>;
|
|
53
|
+
export interface AptlyAppInjectionSchema<ID> {
|
|
54
|
+
_id: ID;
|
|
55
|
+
type: AptlyAppInjectionType;
|
|
56
|
+
menu: AptlyAppInjectionMenu;
|
|
57
|
+
model: AptlyPermissionModel;
|
|
58
|
+
label: string;
|
|
59
|
+
icon?: string;
|
|
60
|
+
src: string;
|
|
61
|
+
}
|
|
62
|
+
export interface AptlyAppProxySchema<ID> {
|
|
63
|
+
_id: ID;
|
|
64
|
+
path: string;
|
|
65
|
+
url: string;
|
|
66
|
+
}
|
package/models/app.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AptlyAppInjectionType = exports.AptlyProjectInjection = exports.AptlyOrganizationInjection = void 0;
|
|
4
|
+
var AptlyOrganizationInjection;
|
|
5
|
+
(function (AptlyOrganizationInjection) {
|
|
6
|
+
AptlyOrganizationInjection["Base"] = "";
|
|
7
|
+
AptlyOrganizationInjection["Project"] = "project";
|
|
8
|
+
AptlyOrganizationInjection["Options"] = "options";
|
|
9
|
+
AptlyOrganizationInjection["Products"] = "products";
|
|
10
|
+
AptlyOrganizationInjection["Content"] = "content";
|
|
11
|
+
AptlyOrganizationInjection["Admin"] = "admin";
|
|
12
|
+
})(AptlyOrganizationInjection = exports.AptlyOrganizationInjection || (exports.AptlyOrganizationInjection = {}));
|
|
13
|
+
var AptlyProjectInjection;
|
|
14
|
+
(function (AptlyProjectInjection) {
|
|
15
|
+
AptlyProjectInjection["Base"] = "";
|
|
16
|
+
AptlyProjectInjection["Options"] = "options";
|
|
17
|
+
AptlyProjectInjection["Products"] = "products";
|
|
18
|
+
AptlyProjectInjection["Content"] = "content";
|
|
19
|
+
AptlyProjectInjection["Project"] = "project";
|
|
20
|
+
AptlyProjectInjection["Support"] = "support";
|
|
21
|
+
AptlyProjectInjection["Admin"] = "admin";
|
|
22
|
+
})(AptlyProjectInjection = exports.AptlyProjectInjection || (exports.AptlyProjectInjection = {}));
|
|
23
|
+
var AptlyAppInjectionType;
|
|
24
|
+
(function (AptlyAppInjectionType) {
|
|
25
|
+
AptlyAppInjectionType["Iframe"] = "iframe";
|
|
26
|
+
AptlyAppInjectionType["Script"] = "script";
|
|
27
|
+
})(AptlyAppInjectionType = exports.AptlyAppInjectionType || (exports.AptlyAppInjectionType = {}));
|
|
28
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":";;;AAiCA,IAAY,0BAOX;AAPD,WAAY,0BAA0B;IACpC,uCAAS,CAAA;IACT,iDAAmB,CAAA;IACnB,iDAAmB,CAAA;IACnB,mDAAqB,CAAA;IACrB,iDAAmB,CAAA;IACnB,6CAAe,CAAA;AACjB,CAAC,EAPW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAOrC;AAED,IAAY,qBAQX;AARD,WAAY,qBAAqB;IAC/B,kCAAS,CAAA;IACT,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AACjB,CAAC,EARW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAQhC;AAID,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;AACnB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
|
package/models/app.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
|
+
import { AptlyWebhookType } from '../enums';
|
|
3
|
+
import { AptlyField, AptlyPermissionModel } from '../core';
|
|
4
|
+
import { AptlyMediaSrcSchema } from './media';
|
|
5
|
+
|
|
6
|
+
export type AptlyApp = AptlyAppSchema<string, string>;
|
|
7
|
+
export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
8
|
+
slug: string;
|
|
9
|
+
description: string;
|
|
10
|
+
installUrl: string;
|
|
11
|
+
redirectUris: string[];
|
|
12
|
+
clientSecret: string; // combined with _id as clientId to create oauth tokens
|
|
13
|
+
logo?: AptlyMediaSrcSchema<ID, DATE>;
|
|
14
|
+
banner?: AptlyMediaSrcSchema<ID, DATE>;
|
|
15
|
+
settings: AptlyAppSettingSchema<ID>[];
|
|
16
|
+
webhooks: AptlyAppWebhookSchema<ID>[];
|
|
17
|
+
proxies: AptlyAppProxySchema<ID>[];
|
|
18
|
+
injections: AptlyAppInjectionSchema<ID>[]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type AptlyAppSetting = AptlyAppSettingSchema<string>;
|
|
22
|
+
export interface AptlyAppSettingSchema<ID> extends AptlyField {
|
|
23
|
+
_id: ID;
|
|
24
|
+
key: string;
|
|
25
|
+
defaultValue: any;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface AptlyAppWebhookSchema<ID> {
|
|
29
|
+
_id: ID;
|
|
30
|
+
types: AptlyWebhookType[];
|
|
31
|
+
url: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export enum AptlyOrganizationInjection {
|
|
35
|
+
Base = '',
|
|
36
|
+
Project = 'project',
|
|
37
|
+
Options = 'options',
|
|
38
|
+
Products = 'products',
|
|
39
|
+
Content = 'content',
|
|
40
|
+
Admin = 'admin'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export enum AptlyProjectInjection {
|
|
44
|
+
Base = '',
|
|
45
|
+
Options = 'options',
|
|
46
|
+
Products = 'products',
|
|
47
|
+
Content = 'content',
|
|
48
|
+
Project = 'project',
|
|
49
|
+
Support = 'support',
|
|
50
|
+
Admin = 'admin'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type AptlyAppInjectionMenu = `organization-${AptlyOrganizationInjection}` | `project-${AptlyProjectInjection}`;
|
|
54
|
+
|
|
55
|
+
export enum AptlyAppInjectionType {
|
|
56
|
+
Iframe = 'iframe',
|
|
57
|
+
Script = 'script',
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type AptlyAppInjection = AptlyAppInjectionSchema<string>;
|
|
61
|
+
export interface AptlyAppInjectionSchema<ID> {
|
|
62
|
+
_id: ID;
|
|
63
|
+
type: AptlyAppInjectionType;
|
|
64
|
+
menu: AptlyAppInjectionMenu;
|
|
65
|
+
model: AptlyPermissionModel;
|
|
66
|
+
label: string;
|
|
67
|
+
icon?: string;
|
|
68
|
+
src: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface AptlyAppProxySchema<ID> {
|
|
72
|
+
_id: ID;
|
|
73
|
+
path: string;
|
|
74
|
+
url: string;
|
|
75
|
+
}
|
package/models/client.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AptlyBaseSchema } from './extends';
|
|
2
|
+
import { AptlyPermissionSchema } from '../core';
|
|
2
3
|
export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
3
4
|
user: ID;
|
|
4
5
|
subject: string;
|
|
5
6
|
clientId: string;
|
|
6
7
|
clientSecret?: string;
|
|
7
|
-
permissions:
|
|
8
|
+
permissions: AptlyPermissionSchema;
|
|
8
9
|
/**
|
|
9
10
|
* @deprecated use createdAt
|
|
10
11
|
*/
|
package/models/client.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AptlyBaseSchema } from './extends';
|
|
2
|
+
import { AptlyPermissionSchema } from '../core';
|
|
2
3
|
|
|
3
4
|
export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
4
5
|
user: ID;
|
|
5
6
|
subject: string;
|
|
6
7
|
clientId: string;
|
|
7
8
|
clientSecret?: string;
|
|
8
|
-
permissions:
|
|
9
|
+
permissions: AptlyPermissionSchema;
|
|
9
10
|
/**
|
|
10
11
|
* @deprecated use createdAt
|
|
11
12
|
*/
|
package/models/document.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
|
|
|
15
15
|
thirdPartyId: string | null;
|
|
16
16
|
external_url?: string;
|
|
17
17
|
public_id?: string;
|
|
18
|
-
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID
|
|
18
|
+
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID>[];
|
|
19
19
|
chunks?: ID[];
|
|
20
20
|
isPasswordProtected?: boolean;
|
|
21
21
|
/**
|
|
@@ -23,8 +23,8 @@ export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
|
|
|
23
23
|
*/
|
|
24
24
|
created: DATE;
|
|
25
25
|
}
|
|
26
|
-
export declare type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string
|
|
27
|
-
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID
|
|
26
|
+
export declare type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string>;
|
|
27
|
+
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID> {
|
|
28
28
|
_id: ID;
|
|
29
29
|
unit: ID;
|
|
30
30
|
id?: number;
|
package/models/document.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
|
|
|
17
17
|
thirdPartyId: string | null;
|
|
18
18
|
external_url?: string;
|
|
19
19
|
public_id?: string; // cloudinary_id or URL
|
|
20
|
-
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID
|
|
20
|
+
boligmappaStatus?: AptlyDocumentSchemaBoligmappaStatusSchema<ID>[];
|
|
21
21
|
chunks?: ID[];
|
|
22
22
|
isPasswordProtected?: boolean;
|
|
23
23
|
/**
|
|
@@ -26,8 +26,8 @@ export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
|
|
|
26
26
|
created: DATE;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string
|
|
30
|
-
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID
|
|
29
|
+
export type AptlyDocumentSchemaBoligmappaStatus = AptlyDocumentSchemaBoligmappaStatusSchema<string>;
|
|
30
|
+
export interface AptlyDocumentSchemaBoligmappaStatusSchema<ID> {
|
|
31
31
|
_id: ID;
|
|
32
32
|
unit: ID;
|
|
33
33
|
id?: number;
|
package/models/index.d.ts
CHANGED
package/models/index.js
CHANGED
|
@@ -1,33 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
__exportStar(require("./app"), exports);
|
|
14
|
+
__exportStar(require("./booking"), exports);
|
|
15
|
+
__exportStar(require("./client"), exports);
|
|
16
|
+
__exportStar(require("./department"), exports);
|
|
17
|
+
__exportStar(require("./document"), exports);
|
|
18
|
+
__exportStar(require("./extends"), exports);
|
|
19
|
+
__exportStar(require("./inquiry"), exports);
|
|
20
|
+
__exportStar(require("./media"), exports);
|
|
21
|
+
__exportStar(require("./notification-trigger"), exports);
|
|
22
|
+
__exportStar(require("./option-label"), exports);
|
|
23
|
+
__exportStar(require("./order"), exports);
|
|
24
|
+
__exportStar(require("./organization"), exports);
|
|
25
|
+
__exportStar(require("./page"), exports);
|
|
26
|
+
__exportStar(require("./producer"), exports);
|
|
27
|
+
__exportStar(require("./product"), exports);
|
|
28
|
+
__exportStar(require("./product-stats"), exports);
|
|
29
|
+
__exportStar(require("./project"), exports);
|
|
30
|
+
__exportStar(require("./queue-download"), exports);
|
|
31
|
+
__exportStar(require("./recommendation"), exports);
|
|
32
|
+
__exportStar(require("./supplier"), exports);
|
|
33
|
+
__exportStar(require("./tag"), exports);
|
|
34
|
+
__exportStar(require("./unit"), exports);
|
|
35
|
+
__exportStar(require("./unit-template"), exports);
|
|
36
|
+
__exportStar(require("./unit-email"), exports);
|
|
37
|
+
__exportStar(require("./upsell-template"), exports);
|
|
38
|
+
__exportStar(require("./user"), exports);
|
|
39
|
+
__exportStar(require("./webhook"), exports);
|
|
40
|
+
__exportStar(require("./webhook-event"), exports);
|
|
33
41
|
//# sourceMappingURL=index.js.map
|
package/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAsB;AACtB,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,0CAAwB;AACxB,yDAAuC;AACvC,iDAA+B;AAC/B,0CAAwB;AACxB,iDAA+B;AAC/B,yCAAuB;AACvB,6CAA2B;AAC3B,4CAA0B;AAC1B,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,6CAA2B;AAC3B,wCAAsB;AACtB,yCAAuB;AACvB,kDAAgC;AAChC,+CAA6B;AAC7B,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,kDAAgC"}
|
package/models/index.ts
CHANGED
package/models/media.d.ts
CHANGED
|
@@ -49,6 +49,10 @@ export interface AptlyMediaSrcLocation {
|
|
|
49
49
|
export interface AptlyMediaSrcSchema<ID, DATE> extends Pick<AptlyMediaSchema<ID, DATE>, AptlyMediaSrcKeys> {
|
|
50
50
|
area?: AptlyMediaSrcArea;
|
|
51
51
|
location?: AptlyMediaSrcLocation;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated used my product images. Is slowly replaced with src/url
|
|
54
|
+
*/
|
|
55
|
+
image?: string;
|
|
52
56
|
}
|
|
53
57
|
export declare type AptlyMediaSrcKeys = '_id' | 'name' | 'src' | 'url' | 'alt' | 'title' | 'caption' | 'mime' | 'width' | 'height';
|
|
54
58
|
export declare type AptlyMediaSrc = AptlyMediaSrcSchema<string, string>;
|
package/models/media.ts
CHANGED
|
@@ -59,6 +59,11 @@ export interface AptlyMediaSrcLocation {
|
|
|
59
59
|
export interface AptlyMediaSrcSchema<ID, DATE> extends Pick<AptlyMediaSchema<ID, DATE>, AptlyMediaSrcKeys> {
|
|
60
60
|
area?: AptlyMediaSrcArea;
|
|
61
61
|
location?: AptlyMediaSrcLocation;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated used my product images. Is slowly replaced with src/url
|
|
65
|
+
*/
|
|
66
|
+
image?: string;
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
export type AptlyMediaSrcKeys = '_id' | 'name' | 'src' | 'url' | 'alt' | 'title' | 'caption' | 'mime' | 'width' | 'height';
|