@aptly-as/types 3.3.1 → 3.4.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/scope.d.ts +1 -0
- package/core/scope.js +1 -0
- package/core/webhook-event-data.d.ts +1 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/models/info.d.ts +12 -0
- package/models/info.js +1 -0
- package/models/payment.d.ts +2 -0
- package/package.json +1 -1
package/core/scope.d.ts
CHANGED
package/core/scope.js
CHANGED
|
@@ -30,6 +30,7 @@ export var AptlyScopes;
|
|
|
30
30
|
AptlyScopes["Admin"] = "admin";
|
|
31
31
|
AptlyScopes["AdminApps"] = "adminApps";
|
|
32
32
|
AptlyScopes["AdminBilling"] = "adminBilling";
|
|
33
|
+
AptlyScopes["AdminInfo"] = "adminInfo";
|
|
33
34
|
AptlyScopes["AdminModules"] = "adminModules";
|
|
34
35
|
AptlyScopes["AdminNews"] = "adminNews";
|
|
35
36
|
AptlyScopes["AdminPlans"] = "adminPlans";
|
|
@@ -17,6 +17,7 @@ export declare namespace AptlyWebhookEventData {
|
|
|
17
17
|
unit: Unit<ID, DATE>;
|
|
18
18
|
payment: AptlyPaymentSchema<ID, DATE>;
|
|
19
19
|
order: Pick<AptlyOrderSchema<ID, DATE>, '_id' | 'orderNumber'>;
|
|
20
|
+
offer?: Pick<AptlyOfferSchema<ID, DATE>, '_id' | 'name' | 'number' | 'description'>;
|
|
20
21
|
documentUrl?: string;
|
|
21
22
|
reportDocumentUrl?: string;
|
|
22
23
|
}
|
package/models/index.d.ts
CHANGED
package/models/index.js
CHANGED
package/models/info.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
|
+
import { AptlyModules } from '../core';
|
|
3
|
+
import { AptlyMediaSrcSchema } from './media';
|
|
4
|
+
export type AptlyInfo = AptlyInfoSchema<string, string>;
|
|
5
|
+
export interface AptlyInfoSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
6
|
+
published: boolean;
|
|
7
|
+
media: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
8
|
+
embed: string;
|
|
9
|
+
module: AptlyModules;
|
|
10
|
+
description: string;
|
|
11
|
+
path: string;
|
|
12
|
+
}
|
package/models/info.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/payment.d.ts
CHANGED
|
@@ -10,12 +10,14 @@ import { AptlyPickConfirmedSchema } from './pick.js';
|
|
|
10
10
|
import { AptlyProjectContent, AptlyProjectSchema } from './project.js';
|
|
11
11
|
import { AptlyUnitContent, AptlyUnitSchema } from './unit.js';
|
|
12
12
|
import { AptlyUserSchema } from './user.js';
|
|
13
|
+
import { AptlyOfferSchema } from './offer';
|
|
13
14
|
export type AptlyPayment = AptlyPaymentSchema<string, string>;
|
|
14
15
|
export interface AptlyPaymentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
|
|
15
16
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
16
17
|
project: ID | AptlyProjectSchema<ID, DATE>;
|
|
17
18
|
unit: ID | AptlyUnitSchema<ID, DATE>;
|
|
18
19
|
order: ID | AptlyOrderSchema<ID, DATE>;
|
|
20
|
+
offer: ID | AptlyOfferSchema<ID, DATE> | null;
|
|
19
21
|
app: ID | AptlyAppSchema<ID, DATE>;
|
|
20
22
|
document?: ID | AptlyDocumentSchema<ID, DATE>;
|
|
21
23
|
reportDocument?: ID | AptlyDocumentSchema<ID, DATE>;
|