@contractspec/example.marketplace 1.45.2 → 1.45.4

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.
Files changed (44) hide show
  1. package/dist/entities/index.d.ts +296 -296
  2. package/dist/entities/index.d.ts.map +1 -1
  3. package/dist/entities/order.d.ts +78 -78
  4. package/dist/entities/payout.d.ts +65 -65
  5. package/dist/entities/product.d.ts +70 -70
  6. package/dist/entities/review.d.ts +56 -56
  7. package/dist/entities/review.d.ts.map +1 -1
  8. package/dist/entities/store.d.ts +41 -41
  9. package/dist/entities/store.d.ts.map +1 -1
  10. package/dist/order/order.enum.d.ts +2 -2
  11. package/dist/order/order.enum.d.ts.map +1 -1
  12. package/dist/order/order.event.d.ts +39 -39
  13. package/dist/order/order.event.d.ts.map +1 -1
  14. package/dist/order/order.operations.d.ts +90 -90
  15. package/dist/order/order.operations.d.ts.map +1 -1
  16. package/dist/order/order.schema.d.ts +39 -39
  17. package/dist/payout/payout.enum.d.ts +2 -2
  18. package/dist/payout/payout.enum.d.ts.map +1 -1
  19. package/dist/payout/payout.event.d.ts +17 -17
  20. package/dist/payout/payout.event.d.ts.map +1 -1
  21. package/dist/payout/payout.operations.d.ts +24 -24
  22. package/dist/payout/payout.operations.d.ts.map +1 -1
  23. package/dist/payout/payout.schema.d.ts +37 -37
  24. package/dist/payout/payout.schema.d.ts.map +1 -1
  25. package/dist/product/product.enum.d.ts +2 -2
  26. package/dist/product/product.event.d.ts +20 -20
  27. package/dist/product/product.event.d.ts.map +1 -1
  28. package/dist/product/product.operations.d.ts +68 -68
  29. package/dist/product/product.operations.d.ts.map +1 -1
  30. package/dist/product/product.schema.d.ts +52 -52
  31. package/dist/review/review.enum.d.ts +2 -2
  32. package/dist/review/review.enum.d.ts.map +1 -1
  33. package/dist/review/review.event.d.ts +15 -15
  34. package/dist/review/review.event.d.ts.map +1 -1
  35. package/dist/review/review.operations.d.ts +59 -59
  36. package/dist/review/review.operations.d.ts.map +1 -1
  37. package/dist/review/review.schema.d.ts +45 -45
  38. package/dist/store/store.enum.d.ts +2 -2
  39. package/dist/store/store.event.d.ts +14 -14
  40. package/dist/store/store.event.d.ts.map +1 -1
  41. package/dist/store/store.operations.d.ts +33 -33
  42. package/dist/store/store.schema.d.ts +20 -20
  43. package/dist/store/store.schema.d.ts.map +1 -1
  44. package/package.json +5 -5
@@ -1,48 +1,48 @@
1
- import * as _contractspec_lib_schema210 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts8 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_schema446 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts13 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/store/store.event.d.ts
5
- declare const StoreCreatedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema210.SchemaModel<{
5
+ declare const StoreCreatedEvent: _contractspec_lib_contracts13.EventSpec<_contractspec_lib_schema446.SchemaModel<{
6
6
  storeId: {
7
- type: _contractspec_lib_schema210.FieldType<string, string>;
7
+ type: _contractspec_lib_schema446.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  name: {
11
- type: _contractspec_lib_schema210.FieldType<string, string>;
11
+ type: _contractspec_lib_schema446.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  slug: {
15
- type: _contractspec_lib_schema210.FieldType<string, string>;
15
+ type: _contractspec_lib_schema446.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  ownerId: {
19
- type: _contractspec_lib_schema210.FieldType<string, string>;
19
+ type: _contractspec_lib_schema446.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  timestamp: {
23
- type: _contractspec_lib_schema210.FieldType<Date, string>;
23
+ type: _contractspec_lib_schema446.FieldType<Date, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  }>>;
27
- declare const StoreStatusChangedEvent: _contractspec_lib_contracts8.EventSpec<_contractspec_lib_schema210.SchemaModel<{
27
+ declare const StoreStatusChangedEvent: _contractspec_lib_contracts13.EventSpec<_contractspec_lib_schema446.SchemaModel<{
28
28
  storeId: {
29
- type: _contractspec_lib_schema210.FieldType<string, string>;
29
+ type: _contractspec_lib_schema446.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  previousStatus: {
33
- type: _contractspec_lib_schema210.FieldType<string, string>;
33
+ type: _contractspec_lib_schema446.FieldType<string, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  newStatus: {
37
- type: _contractspec_lib_schema210.FieldType<string, string>;
37
+ type: _contractspec_lib_schema446.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  reason: {
41
- type: _contractspec_lib_schema210.FieldType<string, string>;
41
+ type: _contractspec_lib_schema446.FieldType<string, string>;
42
42
  isOptional: true;
43
43
  };
44
44
  timestamp: {
45
- type: _contractspec_lib_schema210.FieldType<Date, string>;
45
+ type: _contractspec_lib_schema446.FieldType<Date, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"store.event.d.ts","names":[],"sources":["../../src/store/store.event.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,mBAAiB,4BAAA,CAAA,sCAAA;;UAU5B,2BAAA,CAAA;;EAVW,CAAA;EAUX,IAAA,EAAA;;;;;;;EAV4B,CAAA;EAAA,OAAA,EAAA;IAYjB,IAAA,uCAUX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;AAVkC,cAAvB,uBAAuB,EAAA,4BAAA,CAAA,SAAA,6BAAA,WAAA,CAAA;EAAA,OAAA,EAAA;UAUlC,2BAAA,CAAA"}
1
+ {"version":3,"file":"store.event.d.ts","names":[],"sources":["../../src/store/store.event.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,mBAAiB,6BAAA,CAAA,sCAAA;;UAU5B,2BAAA,CAAA;;EAVW,CAAA;EAUX,IAAA,EAAA;;;;;;;EAV4B,CAAA;EAAA,OAAA,EAAA;IAYjB,IAAA,uCAUX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;AAVkC,cAAvB,uBAAuB,EAAA,6BAAA,CAAA,SAAA,6BAAA,WAAA,CAAA;EAAA,OAAA,EAAA;UAUlC,2BAAA,CAAA"}
@@ -1,127 +1,127 @@
1
- import * as _contractspec_lib_schema222 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts10 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_schema414 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts12 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/store/store.operations.d.ts
5
5
  /**
6
6
  * Create a new seller store.
7
7
  */
8
- declare const CreateStoreContract: _contractspec_lib_contracts10.OperationSpec<_contractspec_lib_schema222.SchemaModel<{
8
+ declare const CreateStoreContract: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema414.SchemaModel<{
9
9
  name: {
10
- type: _contractspec_lib_schema222.FieldType<string, string>;
10
+ type: _contractspec_lib_schema414.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  slug: {
14
- type: _contractspec_lib_schema222.FieldType<string, string>;
14
+ type: _contractspec_lib_schema414.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  description: {
18
- type: _contractspec_lib_schema222.FieldType<string, string>;
18
+ type: _contractspec_lib_schema414.FieldType<string, string>;
19
19
  isOptional: true;
20
20
  };
21
21
  email: {
22
- type: _contractspec_lib_schema222.FieldType<string, string>;
22
+ type: _contractspec_lib_schema414.FieldType<string, string>;
23
23
  isOptional: true;
24
24
  };
25
25
  country: {
26
- type: _contractspec_lib_schema222.FieldType<string, string>;
26
+ type: _contractspec_lib_schema414.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  currency: {
30
- type: _contractspec_lib_schema222.FieldType<string, string>;
30
+ type: _contractspec_lib_schema414.FieldType<string, string>;
31
31
  isOptional: true;
32
32
  };
33
- }>, _contractspec_lib_schema222.SchemaModel<{
33
+ }>, _contractspec_lib_schema414.SchemaModel<{
34
34
  id: {
35
- type: _contractspec_lib_schema222.FieldType<string, string>;
35
+ type: _contractspec_lib_schema414.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  name: {
39
- type: _contractspec_lib_schema222.FieldType<string, string>;
39
+ type: _contractspec_lib_schema414.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  slug: {
43
- type: _contractspec_lib_schema222.FieldType<string, string>;
43
+ type: _contractspec_lib_schema414.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  description: {
47
- type: _contractspec_lib_schema222.FieldType<string, string>;
47
+ type: _contractspec_lib_schema414.FieldType<string, string>;
48
48
  isOptional: true;
49
49
  };
50
50
  status: {
51
- type: _contractspec_lib_schema222.EnumType<[string, string, string, string]>;
51
+ type: _contractspec_lib_schema414.EnumType<[string, string, string, string]>;
52
52
  isOptional: false;
53
53
  };
54
54
  ownerId: {
55
- type: _contractspec_lib_schema222.FieldType<string, string>;
55
+ type: _contractspec_lib_schema414.FieldType<string, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  logoFileId: {
59
- type: _contractspec_lib_schema222.FieldType<string, string>;
59
+ type: _contractspec_lib_schema414.FieldType<string, string>;
60
60
  isOptional: true;
61
61
  };
62
62
  isVerified: {
63
- type: _contractspec_lib_schema222.FieldType<boolean, boolean>;
63
+ type: _contractspec_lib_schema414.FieldType<boolean, boolean>;
64
64
  isOptional: false;
65
65
  };
66
66
  totalProducts: {
67
- type: _contractspec_lib_schema222.FieldType<number, number>;
67
+ type: _contractspec_lib_schema414.FieldType<number, number>;
68
68
  isOptional: false;
69
69
  };
70
70
  averageRating: {
71
- type: _contractspec_lib_schema222.FieldType<number, number>;
71
+ type: _contractspec_lib_schema414.FieldType<number, number>;
72
72
  isOptional: false;
73
73
  };
74
74
  createdAt: {
75
- type: _contractspec_lib_schema222.FieldType<Date, string>;
75
+ type: _contractspec_lib_schema414.FieldType<Date, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  }>, {
79
79
  key: string;
80
80
  version: string;
81
81
  when: string;
82
- payload: _contractspec_lib_schema222.SchemaModel<{
82
+ payload: _contractspec_lib_schema414.SchemaModel<{
83
83
  id: {
84
- type: _contractspec_lib_schema222.FieldType<string, string>;
84
+ type: _contractspec_lib_schema414.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  name: {
88
- type: _contractspec_lib_schema222.FieldType<string, string>;
88
+ type: _contractspec_lib_schema414.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  slug: {
92
- type: _contractspec_lib_schema222.FieldType<string, string>;
92
+ type: _contractspec_lib_schema414.FieldType<string, string>;
93
93
  isOptional: false;
94
94
  };
95
95
  description: {
96
- type: _contractspec_lib_schema222.FieldType<string, string>;
96
+ type: _contractspec_lib_schema414.FieldType<string, string>;
97
97
  isOptional: true;
98
98
  };
99
99
  status: {
100
- type: _contractspec_lib_schema222.EnumType<[string, string, string, string]>;
100
+ type: _contractspec_lib_schema414.EnumType<[string, string, string, string]>;
101
101
  isOptional: false;
102
102
  };
103
103
  ownerId: {
104
- type: _contractspec_lib_schema222.FieldType<string, string>;
104
+ type: _contractspec_lib_schema414.FieldType<string, string>;
105
105
  isOptional: false;
106
106
  };
107
107
  logoFileId: {
108
- type: _contractspec_lib_schema222.FieldType<string, string>;
108
+ type: _contractspec_lib_schema414.FieldType<string, string>;
109
109
  isOptional: true;
110
110
  };
111
111
  isVerified: {
112
- type: _contractspec_lib_schema222.FieldType<boolean, boolean>;
112
+ type: _contractspec_lib_schema414.FieldType<boolean, boolean>;
113
113
  isOptional: false;
114
114
  };
115
115
  totalProducts: {
116
- type: _contractspec_lib_schema222.FieldType<number, number>;
116
+ type: _contractspec_lib_schema414.FieldType<number, number>;
117
117
  isOptional: false;
118
118
  };
119
119
  averageRating: {
120
- type: _contractspec_lib_schema222.FieldType<number, number>;
120
+ type: _contractspec_lib_schema414.FieldType<number, number>;
121
121
  isOptional: false;
122
122
  };
123
123
  createdAt: {
124
- type: _contractspec_lib_schema222.FieldType<Date, string>;
124
+ type: _contractspec_lib_schema414.FieldType<Date, string>;
125
125
  isOptional: false;
126
126
  };
127
127
  }>;
@@ -1,81 +1,81 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema296 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/store/store.schema.d.ts
4
4
  /**
5
5
  * A seller store.
6
6
  */
7
- declare const StoreModel: _contractspec_lib_schema0.SchemaModel<{
7
+ declare const StoreModel: _contractspec_lib_schema296.SchemaModel<{
8
8
  id: {
9
- type: _contractspec_lib_schema0.FieldType<string, string>;
9
+ type: _contractspec_lib_schema296.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  name: {
13
- type: _contractspec_lib_schema0.FieldType<string, string>;
13
+ type: _contractspec_lib_schema296.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  slug: {
17
- type: _contractspec_lib_schema0.FieldType<string, string>;
17
+ type: _contractspec_lib_schema296.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  description: {
21
- type: _contractspec_lib_schema0.FieldType<string, string>;
21
+ type: _contractspec_lib_schema296.FieldType<string, string>;
22
22
  isOptional: true;
23
23
  };
24
24
  status: {
25
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
25
+ type: _contractspec_lib_schema296.EnumType<[string, string, string, string]>;
26
26
  isOptional: false;
27
27
  };
28
28
  ownerId: {
29
- type: _contractspec_lib_schema0.FieldType<string, string>;
29
+ type: _contractspec_lib_schema296.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  logoFileId: {
33
- type: _contractspec_lib_schema0.FieldType<string, string>;
33
+ type: _contractspec_lib_schema296.FieldType<string, string>;
34
34
  isOptional: true;
35
35
  };
36
36
  isVerified: {
37
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
37
+ type: _contractspec_lib_schema296.FieldType<boolean, boolean>;
38
38
  isOptional: false;
39
39
  };
40
40
  totalProducts: {
41
- type: _contractspec_lib_schema0.FieldType<number, number>;
41
+ type: _contractspec_lib_schema296.FieldType<number, number>;
42
42
  isOptional: false;
43
43
  };
44
44
  averageRating: {
45
- type: _contractspec_lib_schema0.FieldType<number, number>;
45
+ type: _contractspec_lib_schema296.FieldType<number, number>;
46
46
  isOptional: false;
47
47
  };
48
48
  createdAt: {
49
- type: _contractspec_lib_schema0.FieldType<Date, string>;
49
+ type: _contractspec_lib_schema296.FieldType<Date, string>;
50
50
  isOptional: false;
51
51
  };
52
52
  }>;
53
53
  /**
54
54
  * Input for creating a store.
55
55
  */
56
- declare const CreateStoreInputModel: _contractspec_lib_schema0.SchemaModel<{
56
+ declare const CreateStoreInputModel: _contractspec_lib_schema296.SchemaModel<{
57
57
  name: {
58
- type: _contractspec_lib_schema0.FieldType<string, string>;
58
+ type: _contractspec_lib_schema296.FieldType<string, string>;
59
59
  isOptional: false;
60
60
  };
61
61
  slug: {
62
- type: _contractspec_lib_schema0.FieldType<string, string>;
62
+ type: _contractspec_lib_schema296.FieldType<string, string>;
63
63
  isOptional: false;
64
64
  };
65
65
  description: {
66
- type: _contractspec_lib_schema0.FieldType<string, string>;
66
+ type: _contractspec_lib_schema296.FieldType<string, string>;
67
67
  isOptional: true;
68
68
  };
69
69
  email: {
70
- type: _contractspec_lib_schema0.FieldType<string, string>;
70
+ type: _contractspec_lib_schema296.FieldType<string, string>;
71
71
  isOptional: true;
72
72
  };
73
73
  country: {
74
- type: _contractspec_lib_schema0.FieldType<string, string>;
74
+ type: _contractspec_lib_schema296.FieldType<string, string>;
75
75
  isOptional: true;
76
76
  };
77
77
  currency: {
78
- type: _contractspec_lib_schema0.FieldType<string, string>;
78
+ type: _contractspec_lib_schema296.FieldType<string, string>;
79
79
  isOptional: true;
80
80
  };
81
81
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"store.schema.d.ts","names":[],"sources":["../../src/store/store.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAMa,cAAA,UAgBX,4BAhBqB,WAgBrB,CAAA;EAAA,EAAA,EAAA;UAAA,yBAAA,CAAA;;;;;;;;;;;;IAhBqB,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAqBV,UAAA,EAAA,IAAA;EAUX,CAAA;;;;;;6CAVgC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAArB,iDAAqB;;UAUhC,yBAAA,CAAA"}
1
+ {"version":3,"file":"store.schema.d.ts","names":[],"sources":["../../src/store/store.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAMa,cAAA,UAgBX,8BAhBqB,WAgBrB,CAAA;EAAA,EAAA,EAAA;UAAA,2BAAA,CAAA;;;;;;;;;;;;IAhBqB,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAqBV,UAAA,EAAA,IAAA;EAUX,CAAA;;;;;;+CAVgC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAArB,mDAAqB;;UAUhC,2BAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.marketplace",
3
- "version": "1.45.2",
3
+ "version": "1.45.4",
4
4
  "description": "Marketplace example with orders, payouts, and reviews for ContractSpec",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,12 +18,12 @@
18
18
  "lint:check": "eslint src"
19
19
  },
20
20
  "dependencies": {
21
- "@contractspec/lib.schema": "1.45.2",
22
- "@contractspec/lib.contracts": "1.45.2"
21
+ "@contractspec/lib.schema": "1.45.4",
22
+ "@contractspec/lib.contracts": "1.45.4"
23
23
  },
24
24
  "devDependencies": {
25
- "@contractspec/tool.typescript": "1.45.2",
26
- "@contractspec/tool.tsdown": "1.45.2",
25
+ "@contractspec/tool.typescript": "1.45.4",
26
+ "@contractspec/tool.tsdown": "1.45.4",
27
27
  "typescript": "^5.9.3"
28
28
  },
29
29
  "exports": {