@medusajs/region 0.1.2-snapshot-20240704061641 → 0.1.2-snapshot-20240704104329

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.d.ts +30 -275
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1,280 +1,35 @@
1
1
  import { RegionModuleService } from "./services";
2
2
  import { Modules } from "@medusajs/utils";
3
3
  declare const _default: import("@medusajs/types").ModuleExports<typeof RegionModuleService> & {
4
- links: import("@medusajs/utils/dist/modules-sdk/types/links-config").InfersLinksConfig<Modules.REGION, {
5
- Region: import("@medusajs/utils").DmlEntity<{
6
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
7
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
8
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
9
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
10
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<{
11
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
12
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
13
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
14
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
15
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
16
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<() => import("@medusajs/utils").DmlEntity<any & {
17
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
18
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
19
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
20
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
21
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<any>;
22
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
23
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<() => import("@medusajs/utils").DmlEntity<any & {
24
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
25
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
26
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
27
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
28
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<any>;
29
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
30
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">>>;
31
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
32
- } & {
33
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
34
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
35
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
36
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
37
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
38
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<() => import("@medusajs/utils").DmlEntity<any & {
39
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
40
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
41
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
42
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
43
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<any>;
44
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
45
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<() => import("@medusajs/utils").DmlEntity<any & {
46
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
47
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
48
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
49
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
50
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<any>;
51
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
52
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">>>;
53
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
54
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
55
- readonly name: "Country";
56
- readonly tableName: "region_country";
57
- }>>;
58
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
59
- } & {
60
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
61
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
62
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
63
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
64
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<{
65
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
66
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
67
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
68
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
69
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
70
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<() => import("@medusajs/utils").DmlEntity<{
71
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
72
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
73
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
74
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
75
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<any>;
76
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
77
- } & any & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<() => import("@medusajs/utils").DmlEntity<{
78
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
79
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
80
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
81
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
82
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<any>;
83
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
84
- } & any & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">>>;
85
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
86
- } & {
87
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
88
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
89
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
90
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
91
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
92
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<() => import("@medusajs/utils").DmlEntity<{
93
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
94
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
95
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
96
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
97
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<any>;
98
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
99
- } & any & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<() => import("@medusajs/utils").DmlEntity<{
100
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
101
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
102
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
103
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
104
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<any>;
105
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
106
- } & any & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">>>;
107
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
108
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
109
- readonly name: "Country";
110
- readonly tableName: "region_country";
111
- }>>;
112
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
113
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">;
114
- Country: import("@medusajs/utils").DmlEntity<{
115
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
116
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
117
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
118
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
119
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
120
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<() => import("@medusajs/utils").DmlEntity<{
121
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
122
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
123
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
124
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
125
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
126
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
127
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
128
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
129
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
130
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
131
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<any, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<any>>;
132
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
133
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
134
- readonly name: "Country";
135
- readonly tableName: "region_country";
136
- }>>;
137
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
138
- } & {
139
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
140
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
141
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
142
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
143
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
144
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
145
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
146
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
147
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
148
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
149
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<any, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<any>>;
150
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
151
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
152
- readonly name: "Country";
153
- readonly tableName: "region_country";
154
- }>>;
155
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
156
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<() => import("@medusajs/utils").DmlEntity<{
157
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
158
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
159
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
160
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
161
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
162
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
163
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
164
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
165
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
166
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
167
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<any, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<any>>;
168
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
169
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
170
- readonly name: "Country";
171
- readonly tableName: "region_country";
172
- }>>;
173
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
174
- } & {
175
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
176
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
177
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
178
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
179
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<any & {
180
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
181
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
182
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
183
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
184
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
185
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<any, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<any>>;
186
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
187
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
188
- readonly name: "Country";
189
- readonly tableName: "region_country";
190
- }>>;
191
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
192
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">>>;
193
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
194
- } & {
195
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
196
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
197
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
198
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
199
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
200
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<() => import("@medusajs/utils").DmlEntity<{
201
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
202
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
203
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
204
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
205
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<{
206
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
207
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
208
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
209
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
210
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
211
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<any, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<any>>;
212
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
213
- } & any & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
214
- readonly name: "Country";
215
- readonly tableName: "region_country";
216
- }>>;
217
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
218
- } & {
219
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
220
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
221
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
222
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
223
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<{
224
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
225
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
226
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
227
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
228
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
229
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<any, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<any>>;
230
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
231
- } & any & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
232
- readonly name: "Country";
233
- readonly tableName: "region_country";
234
- }>>;
235
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
236
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<() => import("@medusajs/utils").DmlEntity<{
237
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
238
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
239
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
240
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
241
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<{
242
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
243
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
244
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
245
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
246
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
247
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<any, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<any>>;
248
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
249
- } & any & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
250
- readonly name: "Country";
251
- readonly tableName: "region_country";
252
- }>>;
253
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
254
- } & {
255
- id: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/id").IdProperty>;
256
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
257
- currency_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
258
- automatic_taxes: import("@medusajs/utils/dist/dml/properties/boolean").BooleanProperty;
259
- countries: import("@medusajs/utils/dist/dml/relations/has-many").HasMany<() => import("@medusajs/utils").DmlEntity<{
260
- iso_2: import("@medusajs/utils/dist/dml/properties/primary-key").PrimaryKeyModifier<string, import("@medusajs/utils/dist/dml/properties/text").TextProperty>;
261
- iso_3: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
262
- num_code: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
263
- name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
264
- display_name: import("@medusajs/utils/dist/dml/properties/text").TextProperty;
265
- region: import("@medusajs/utils/dist/dml/relations/nullable").NullableModifier<any, import("@medusajs/utils/dist/dml/relations/belongs-to").BelongsTo<any>>;
266
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
267
- } & any & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
268
- readonly name: "Country";
269
- readonly tableName: "region_country";
270
- }>>;
271
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
272
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, "region">>>;
273
- metadata: import("@medusajs/utils/dist/dml/properties/nullable").NullableModifier<Record<string, unknown>, import("@medusajs/utils/dist/dml/properties/json").JSONProperty>;
274
- } & {} & import("@medusajs/utils/dist/dml/helpers/entity-builder/create-default-properties").DMLSchemaDefaults, {
275
- readonly name: "Country";
276
- readonly tableName: "region_country";
277
- }>;
278
- }>;
4
+ linkable: {
5
+ region: {
6
+ id: {
7
+ serviceName: Modules.REGION;
8
+ field: "region";
9
+ linkable: "region_id";
10
+ primaryKey: "id";
11
+ };
12
+ toJSON: () => {
13
+ serviceName: Modules.REGION;
14
+ field: "region";
15
+ linkable: "region_id";
16
+ primaryKey: "id";
17
+ };
18
+ };
19
+ country: {
20
+ iso_2: {
21
+ serviceName: Modules.REGION;
22
+ field: "country";
23
+ linkable: "country_iso_2";
24
+ primaryKey: "iso_2";
25
+ };
26
+ toJSON: () => {
27
+ serviceName: Modules.REGION;
28
+ field: "country";
29
+ linkable: "country_iso_2";
30
+ primaryKey: "iso_2";
31
+ };
32
+ };
33
+ };
279
34
  };
280
35
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/region",
3
- "version": "0.1.2-snapshot-20240704061641",
3
+ "version": "0.1.2-snapshot-20240704104329",
4
4
  "description": "Medusa Region module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
35
35
  },
36
36
  "devDependencies": {
37
- "@medusajs/types": "1.12.0-snapshot-20240704061641",
37
+ "@medusajs/types": "1.12.0-snapshot-20240704104329",
38
38
  "@mikro-orm/cli": "5.9.7",
39
39
  "cross-env": "^5.2.1",
40
40
  "jest": "^29.7.0",
@@ -45,8 +45,8 @@
45
45
  "typescript": "^5.1.6"
46
46
  },
47
47
  "dependencies": {
48
- "@medusajs/modules-sdk": "1.13.0-snapshot-20240704061641",
49
- "@medusajs/utils": "1.12.0-snapshot-20240704061641",
48
+ "@medusajs/modules-sdk": "1.13.0-snapshot-20240704104329",
49
+ "@medusajs/utils": "1.12.0-snapshot-20240704104329",
50
50
  "@mikro-orm/core": "5.9.7",
51
51
  "@mikro-orm/migrations": "5.9.7",
52
52
  "@mikro-orm/postgresql": "5.9.7",