@contractspec/example.marketplace 1.51.0 → 1.53.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/dist/entities/index.d.ts +296 -296
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/order.d.ts +78 -78
- package/dist/entities/payout.d.ts +65 -65
- package/dist/entities/product.d.ts +70 -70
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/store.d.ts +41 -41
- package/dist/marketplace.feature.js +6 -6
- package/dist/marketplace.feature.js.map +1 -1
- package/dist/order/order.enum.d.ts +2 -2
- package/dist/order/order.enum.d.ts.map +1 -1
- package/dist/order/order.event.d.ts +38 -38
- package/dist/order/order.event.d.ts.map +1 -1
- package/dist/order/order.operations.d.ts +89 -89
- package/dist/order/order.operations.d.ts.map +1 -1
- package/dist/order/order.schema.d.ts +39 -39
- package/dist/payout/payout.enum.d.ts +2 -2
- package/dist/payout/payout.event.d.ts +16 -16
- package/dist/payout/payout.operations.d.ts +23 -23
- package/dist/payout/payout.presentation.js +1 -1
- package/dist/payout/payout.presentation.js.map +1 -1
- package/dist/product/product.enum.d.ts +2 -2
- package/dist/product/product.event.d.ts +20 -20
- package/dist/product/product.operations.d.ts +68 -68
- package/dist/product/product.presentation.d.ts +4 -4
- package/dist/product/product.schema.d.ts +52 -52
- package/dist/product/product.schema.d.ts.map +1 -1
- package/dist/review/review.enum.d.ts +2 -2
- package/dist/review/review.enum.d.ts.map +1 -1
- package/dist/review/review.event.d.ts +15 -15
- package/dist/review/review.event.d.ts.map +1 -1
- package/dist/review/review.operations.d.ts +59 -59
- package/dist/review/review.operations.d.ts.map +1 -1
- package/dist/review/review.presentation.d.ts +3 -3
- package/dist/review/review.presentation.js +1 -1
- package/dist/review/review.presentation.js.map +1 -1
- package/dist/review/review.schema.d.ts +45 -45
- package/dist/review/review.schema.d.ts.map +1 -1
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.enum.d.ts.map +1 -1
- package/dist/store/store.event.d.ts +14 -14
- package/dist/store/store.event.d.ts.map +1 -1
- package/dist/store/store.operations.d.ts +33 -33
- package/dist/store/store.presentation.d.ts +3 -3
- package/dist/store/store.schema.d.ts +20 -20
- package/dist/tests/operations.test-spec.d.ts +6 -6
- package/package.json +8 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema599 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/payout/payout.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Payout status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const PayoutStatusEnum:
|
|
7
|
+
declare const PayoutStatusEnum: _contractspec_lib_schema599.EnumType<[string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PayoutStatusEnum };
|
|
10
10
|
//# sourceMappingURL=payout.enum.d.ts.map
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import * as _contractspec_lib_contracts14 from "@contractspec/lib.contracts";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _contractspec_lib_schema669 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/payout/payout.event.d.ts
|
|
5
|
-
declare const PayoutCreatedEvent: _contractspec_lib_contracts14.EventSpec<
|
|
5
|
+
declare const PayoutCreatedEvent: _contractspec_lib_contracts14.EventSpec<_contractspec_lib_schema669.SchemaModel<{
|
|
6
6
|
payoutId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema669.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
payoutNumber: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema669.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
storeId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema669.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
netAmount: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema669.FieldType<number, number>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
currency: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema669.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
orderCount: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema669.FieldType<number, number>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
timestamp: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema669.FieldType<Date, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
}>>;
|
|
35
|
-
declare const PayoutPaidEvent: _contractspec_lib_contracts14.EventSpec<
|
|
35
|
+
declare const PayoutPaidEvent: _contractspec_lib_contracts14.EventSpec<_contractspec_lib_schema669.SchemaModel<{
|
|
36
36
|
payoutId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema669.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
payoutNumber: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema669.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
storeId: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema669.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
netAmount: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema669.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
paymentReference: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema669.FieldType<string, string>;
|
|
54
54
|
isOptional: true;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
type:
|
|
57
|
+
type: _contractspec_lib_schema669.FieldType<Date, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import * as _contractspec_lib_contracts16 from "@contractspec/lib.contracts";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _contractspec_lib_schema739 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/payout/payout.operations.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* List payouts for a store.
|
|
7
7
|
*/
|
|
8
|
-
declare const ListPayoutsContract: _contractspec_lib_contracts16.OperationSpec<
|
|
8
|
+
declare const ListPayoutsContract: _contractspec_lib_contracts16.OperationSpec<_contractspec_lib_schema739.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema739.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
status: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema739.EnumType<[string, string, string, string, string]>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
limit: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema739.FieldType<number, number>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
defaultValue: number;
|
|
21
21
|
};
|
|
22
22
|
offset: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema739.FieldType<number, number>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
defaultValue: number;
|
|
26
26
|
};
|
|
27
|
-
}>,
|
|
27
|
+
}>, _contractspec_lib_schema739.SchemaModel<{
|
|
28
28
|
payouts: {
|
|
29
|
-
type:
|
|
29
|
+
type: _contractspec_lib_schema739.SchemaModel<{
|
|
30
30
|
id: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema739.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
payoutNumber: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema739.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
storeId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _contractspec_lib_schema739.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
status: {
|
|
43
|
-
type:
|
|
43
|
+
type: _contractspec_lib_schema739.EnumType<[string, string, string, string, string]>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
grossAmount: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema739.FieldType<number, number>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
platformFees: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema739.FieldType<number, number>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
netAmount: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema739.FieldType<number, number>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
currency: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema739.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
periodStart: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema739.FieldType<Date, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
periodEnd: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema739.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
orderCount: {
|
|
71
|
-
type:
|
|
71
|
+
type: _contractspec_lib_schema739.FieldType<number, number>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
createdAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema739.FieldType<Date, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
paidAt: {
|
|
79
|
-
type:
|
|
79
|
+
type: _contractspec_lib_schema739.FieldType<Date, string>;
|
|
80
80
|
isOptional: true;
|
|
81
81
|
};
|
|
82
82
|
}>;
|
|
@@ -84,11 +84,11 @@ declare const ListPayoutsContract: _contractspec_lib_contracts16.OperationSpec<_
|
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
total: {
|
|
87
|
-
type:
|
|
87
|
+
type: _contractspec_lib_schema739.FieldType<number, number>;
|
|
88
88
|
isOptional: false;
|
|
89
89
|
};
|
|
90
90
|
totalPending: {
|
|
91
|
-
type:
|
|
91
|
+
type: _contractspec_lib_schema739.FieldType<number, number>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
}>, undefined>;
|
|
@@ -4,7 +4,7 @@ import { StabilityEnum, definePresentation } from "@contractspec/lib.contracts";
|
|
|
4
4
|
//#region src/payout/payout.presentation.ts
|
|
5
5
|
const PayoutListPresentation = definePresentation({
|
|
6
6
|
meta: {
|
|
7
|
-
key: "marketplace.payout.
|
|
7
|
+
key: "marketplace.payout.viewList",
|
|
8
8
|
version: "1.0.0",
|
|
9
9
|
title: "Payout List",
|
|
10
10
|
description: "List of payouts for sellers",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout.presentation.js","names":[],"sources":["../../src/payout/payout.presentation.ts"],"sourcesContent":["import { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';\nimport { PayoutModel } from './payout.schema';\n\nexport const PayoutListPresentation = definePresentation({\n meta: {\n key: 'marketplace.payout.
|
|
1
|
+
{"version":3,"file":"payout.presentation.js","names":[],"sources":["../../src/payout/payout.presentation.ts"],"sourcesContent":["import { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';\nimport { PayoutModel } from './payout.schema';\n\nexport const PayoutListPresentation = definePresentation({\n meta: {\n key: 'marketplace.payout.viewList',\n version: '1.0.0',\n title: 'Payout List',\n description: 'List of payouts for sellers',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'payout', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Show sellers their historical and pending payouts.',\n context: 'Financial dashboard for sellers.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PayoutList',\n props: PayoutModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.payouts.enabled'],\n },\n});\n\nexport const PayoutDetailPresentation = definePresentation({\n meta: {\n key: 'marketplace.payout.detail',\n version: '1.0.0',\n title: 'Payout Details',\n description: 'Payout detail with breakdown',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'payout', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Show the breakdown of a specific payout including fees and orders.',\n context: 'Accessed from the payout list.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PayoutDetail',\n props: PayoutModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.payouts.enabled'],\n },\n});\n"],"mappings":";;;;AAGA,MAAa,yBAAyB,mBAAmB;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAO;EACvC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,8BAA8B,EACvC;CACF,CAAC;AAEF,MAAa,2BAA2B,mBAAmB;CACzD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAS;EACzC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,8BAA8B,EACvC;CACF,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema869 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/product/product.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Product status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const ProductStatusEnum:
|
|
7
|
+
declare const ProductStatusEnum: _contractspec_lib_schema869.EnumType<[string, string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ProductStatusEnum };
|
|
10
10
|
//# sourceMappingURL=product.enum.d.ts.map
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts26 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema851 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/product/product.event.d.ts
|
|
5
|
-
declare const ProductCreatedEvent:
|
|
5
|
+
declare const ProductCreatedEvent: _contractspec_lib_contracts26.EventSpec<_contractspec_lib_schema851.SchemaModel<{
|
|
6
6
|
productId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema851.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
storeId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema851.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
name: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema851.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
price: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema851.FieldType<number, number>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
currency: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema851.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
timestamp: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema851.FieldType<Date, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
}>>;
|
|
31
|
-
declare const ProductPublishedEvent:
|
|
31
|
+
declare const ProductPublishedEvent: _contractspec_lib_contracts26.EventSpec<_contractspec_lib_schema851.SchemaModel<{
|
|
32
32
|
productId: {
|
|
33
|
-
type:
|
|
33
|
+
type: _contractspec_lib_schema851.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
storeId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema851.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
timestamp: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema851.FieldType<Date, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
}>>;
|
|
45
|
-
declare const InventoryUpdatedEvent:
|
|
45
|
+
declare const InventoryUpdatedEvent: _contractspec_lib_contracts26.EventSpec<_contractspec_lib_schema851.SchemaModel<{
|
|
46
46
|
productId: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema851.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
variantId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema851.FieldType<string, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
previousQuantity: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema851.FieldType<number, number>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
newQuantity: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema851.FieldType<number, number>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
reason: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema851.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
timestamp: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema851.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
}>>;
|