@aptly-as/types 1.3.1 → 1.4.0
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/permission.d.ts +2 -2
- package/core/permission.ts +2 -1
- package/enums/document.d.ts +12 -1
- package/enums/document.js +12 -0
- package/enums/document.js.map +1 -1
- package/enums/document.ts +13 -2
- package/enums/index.d.ts +8 -0
- package/enums/index.js +9 -0
- package/enums/index.js.map +1 -1
- package/enums/index.ts +9 -0
- package/models/client.d.ts +5 -3
- package/models/client.ts +6 -3
- package/models/document.d.ts +6 -4
- package/models/document.ts +6 -4
- package/models/extends.d.ts +19 -1
- package/models/extends.ts +20 -1
- package/models/media.d.ts +10 -6
- package/models/media.ts +11 -6
- package/models/option-label.d.ts +6 -5
- package/models/option-label.ts +7 -5
- package/models/order.d.ts +6 -3
- package/models/order.ts +7 -3
- package/models/organization.d.ts +6 -5
- package/models/organization.ts +7 -5
- package/models/page.d.ts +14 -7
- package/models/page.ts +15 -7
- package/models/producer.d.ts +6 -6
- package/models/producer.ts +7 -6
- package/models/product-stats.d.ts +2 -3
- package/models/product-stats.ts +2 -3
- package/models/product.d.ts +17 -12
- package/models/product.ts +18 -12
- package/models/project.d.ts +6 -6
- package/models/project.ts +7 -6
- package/models/queue-download.d.ts +2 -4
- package/models/queue-download.ts +2 -5
- package/models/recommendation.d.ts +4 -6
- package/models/recommendation.ts +4 -6
- package/models/supplier.d.ts +6 -5
- package/models/supplier.ts +7 -5
- package/models/tag.d.ts +5 -3
- package/models/tag.ts +5 -3
- package/models/unit-email.d.ts +5 -2
- package/models/unit-email.js.map +1 -1
- package/models/unit-email.ts +5 -2
- package/models/unit-template.d.ts +11 -7
- package/models/unit-template.ts +11 -7
- package/models/unit.d.ts +5 -5
- package/models/unit.ts +6 -6
- package/models/upsell-template.d.ts +9 -9
- package/models/upsell-template.ts +10 -9
- package/models/user.d.ts +5 -2
- package/models/user.ts +6 -2
- package/models/webhook-event.d.ts +5 -2
- package/models/webhook-event.ts +6 -2
- package/models/webhook.d.ts +6 -4
- package/models/webhook.ts +7 -4
- package/package.json +1 -1
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
2
|
|
|
3
3
|
export type AptlyUpsellTemplate = AptlyUpsellTemplateSchema<string, string>;
|
|
4
|
-
export interface AptlyUpsellTemplateSchema<ID, DATE> extends
|
|
5
|
-
_id: ID;
|
|
6
|
-
name: string;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated not used.. Only for frontend
|
|
9
|
-
*/
|
|
10
|
-
description: string;
|
|
4
|
+
export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
11
5
|
image?: string | null;
|
|
12
6
|
imageMedia?: string | null;
|
|
13
7
|
videoEmbed?: string;
|
|
@@ -15,6 +9,13 @@ export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyHistorySchema<
|
|
|
15
9
|
links: ID[];
|
|
16
10
|
organization?: ID;
|
|
17
11
|
project?: ID;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated use createdAt
|
|
15
|
+
*/
|
|
18
16
|
created: DATE;
|
|
19
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated not used.. Only for frontend
|
|
19
|
+
*/
|
|
20
|
+
description: string;
|
|
20
21
|
}
|
package/models/user.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
1
2
|
export declare type AptlyUser = AptlyUserSchema<string, string>;
|
|
2
|
-
export interface AptlyUserSchema<ID, DATE> {
|
|
3
|
-
_id: ID;
|
|
3
|
+
export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived' | 'name'> {
|
|
4
4
|
email: string;
|
|
5
5
|
fullName: string;
|
|
6
6
|
firstName?: string;
|
|
@@ -10,5 +10,8 @@ export interface AptlyUserSchema<ID, DATE> {
|
|
|
10
10
|
gdpr: boolean;
|
|
11
11
|
phone: string;
|
|
12
12
|
synced: DATE;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated use createdAt
|
|
15
|
+
*/
|
|
13
16
|
created: DATE;
|
|
14
17
|
}
|
package/models/user.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
1
2
|
|
|
2
3
|
export type AptlyUser = AptlyUserSchema<string, string>;
|
|
3
|
-
export interface AptlyUserSchema<ID, DATE> {
|
|
4
|
-
_id: ID;
|
|
4
|
+
export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived' | 'name'> {
|
|
5
5
|
email: string;
|
|
6
6
|
fullName: string;
|
|
7
7
|
firstName?: string;
|
|
@@ -11,5 +11,9 @@ export interface AptlyUserSchema<ID, DATE> {
|
|
|
11
11
|
gdpr: boolean;
|
|
12
12
|
phone: string;
|
|
13
13
|
synced: DATE;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use createdAt
|
|
17
|
+
*/
|
|
14
18
|
created: DATE;
|
|
15
19
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums';
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
3
|
declare type ServerKeys = 'run' | 'organization' | 'project' | 'status' | 'url' | 'headers' | 'responses';
|
|
3
4
|
export declare type AptlyWebhookEvent<T = unknown> = Omit<AptlyWebhookEventSchema<string, string, T>, ServerKeys>;
|
|
4
|
-
export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> {
|
|
5
|
-
_id: ID;
|
|
5
|
+
export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
6
6
|
specversion: string;
|
|
7
7
|
type: AptlyWebhookType;
|
|
8
8
|
source: string;
|
|
@@ -20,6 +20,9 @@ export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> {
|
|
|
20
20
|
url: string;
|
|
21
21
|
headers: AptlyWebhookEventHeaders;
|
|
22
22
|
responses: AptlyWebhookEventResponseSchema<ID, DATE>[];
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated use createdAt
|
|
25
|
+
*/
|
|
23
26
|
created: DATE;
|
|
24
27
|
}
|
|
25
28
|
export declare type AptlyWebhookEventResponse<DATA = any> = AptlyWebhookEventResponseSchema<string, string, DATA>;
|
package/models/webhook-event.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AptlyWebhookEventStatus, AptlyWebhookType } from '../enums';
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
3
|
|
|
3
4
|
type ServerKeys = 'run' | 'organization' | 'project' | 'status' | 'url' | 'headers' | 'responses';
|
|
4
5
|
export type AptlyWebhookEvent<T = unknown> = Omit<AptlyWebhookEventSchema<string, string, T>, ServerKeys>;
|
|
5
|
-
export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> {
|
|
6
|
-
_id: ID;
|
|
6
|
+
export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
7
7
|
specversion: string;
|
|
8
8
|
type: AptlyWebhookType;
|
|
9
9
|
source: string;
|
|
@@ -22,6 +22,10 @@ export interface AptlyWebhookEventSchema<ID, DATE, DATA = unknown> {
|
|
|
22
22
|
url: string;
|
|
23
23
|
headers: AptlyWebhookEventHeaders;
|
|
24
24
|
responses: AptlyWebhookEventResponseSchema<ID, DATE>[];
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use createdAt
|
|
28
|
+
*/
|
|
25
29
|
created: DATE;
|
|
26
30
|
}
|
|
27
31
|
|
package/models/webhook.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { AptlyWebhookStatus, AptlyWebhookType } from '../enums';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
3
|
+
export interface AptlyWebhookSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
4
4
|
organization: ID;
|
|
5
5
|
user?: ID;
|
|
6
6
|
project?: ID;
|
|
7
|
-
name: string;
|
|
8
|
-
created: DATE;
|
|
9
7
|
status: AptlyWebhookStatus;
|
|
10
8
|
url: string;
|
|
11
9
|
types: AptlyWebhookType[];
|
|
12
10
|
secret?: string;
|
|
13
11
|
state?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated use createdAt
|
|
14
|
+
*/
|
|
15
|
+
created: DATE;
|
|
14
16
|
}
|
|
15
17
|
export declare type AptlyWebhook = AptlyWebhookSchema<string, string>;
|
package/models/webhook.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { AptlyWebhookStatus, AptlyWebhookType } from '../enums';
|
|
2
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
3
|
|
|
3
|
-
export interface AptlyWebhookSchema<ID, DATE> {
|
|
4
|
-
_id: ID;
|
|
4
|
+
export interface AptlyWebhookSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
5
5
|
organization: ID;
|
|
6
6
|
user?: ID;
|
|
7
7
|
project?: ID;
|
|
8
|
-
name: string;
|
|
9
|
-
created: DATE;
|
|
10
8
|
status: AptlyWebhookStatus;
|
|
11
9
|
|
|
12
10
|
url: string;
|
|
13
11
|
types: AptlyWebhookType[];
|
|
14
12
|
secret?: string;
|
|
15
13
|
state?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use createdAt
|
|
17
|
+
*/
|
|
18
|
+
created: DATE;
|
|
16
19
|
}
|
|
17
20
|
export type AptlyWebhook = AptlyWebhookSchema<string, string>;
|