@medusajs/order 0.1.3-snapshot-20240717110205 → 0.1.3-snapshot-20240717160031

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20240604100512.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20240604100512.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;CAgX1B"}
1
+ {"version":3,"file":"Migration20240604100512.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20240604100512.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;CAoW1B"}
@@ -131,18 +131,15 @@ class Migration20240604100512 extends migrations_1.Migration {
131
131
  exchange_id
132
132
  )
133
133
  WHERE exchange_id IS NOT NULL AND deleted_at IS NOT NULL;
134
+
135
+
134
136
 
135
-
136
- DO $$
137
- BEGIN
138
- IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'return_status_enum') THEN
139
- CREATE TYPE return_status_enum AS ENUM (
140
- 'requested',
141
- 'received',
142
- 'partially_received',
143
- 'canceled');
144
- END IF;
145
- END$$;
137
+ CREATE TYPE return_status_enum AS ENUM (
138
+ 'requested',
139
+ 'received',
140
+ 'partially_received',
141
+ 'canceled'
142
+ );
146
143
 
147
144
  CREATE TABLE IF NOT EXISTS "return" (
148
145
  "id" TEXT NOT NULL,
@@ -270,15 +267,12 @@ class Migration20240604100512 extends migrations_1.Migration {
270
267
  CREATE INDEX IF NOT EXISTS "IDX_order_exchange_item_item_id" ON "order_exchange_item" ("item_id")
271
268
  WHERE deleted_at IS NOT NULL;
272
269
 
273
- DO $$
274
- BEGIN
275
- IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'order_claim_type_enum') THEN
276
- CREATE TYPE order_claim_type_enum AS ENUM (
277
- 'refund',
278
- 'replace'
279
- );
280
- END IF;
281
- END$$;
270
+
271
+
272
+ CREATE TYPE order_claim_type_enum AS ENUM (
273
+ 'refund',
274
+ 'replace'
275
+ );
282
276
 
283
277
  CREATE TABLE IF NOT EXISTS "order_claim" (
284
278
  "id" TEXT NOT NULL,
@@ -312,19 +306,12 @@ class Migration20240604100512 extends migrations_1.Migration {
312
306
 
313
307
 
314
308
 
315
-
316
-
317
- DO $$
318
- BEGIN
319
- IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'claim_reason_enum') THEN
320
- CREATE TYPE claim_reason_enum AS ENUM (
321
- 'missing_item',
322
- 'wrong_item',
323
- 'production_failure',
324
- 'other'
325
- );
326
- END IF;
327
- END$$;
309
+ CREATE TYPE claim_reason_enum AS ENUM (
310
+ 'missing_item',
311
+ 'wrong_item',
312
+ 'production_failure',
313
+ 'other'
314
+ );
328
315
 
329
316
  CREATE TABLE IF NOT EXISTS "order_claim_item" (
330
317
  "id" TEXT NOT NULL,
@@ -352,6 +339,7 @@ class Migration20240604100512 extends migrations_1.Migration {
352
339
  WHERE deleted_at IS NOT NULL;
353
340
 
354
341
 
342
+
355
343
  CREATE TABLE IF NOT EXISTS "order_claim_item_image" (
356
344
  "id" TEXT NOT NULL,
357
345
  "claim_item_id" TEXT NOT NULL,
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20240604100512.js","sourceRoot":"","sources":["../../src/migrations/Migration20240604100512.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,MAAM,GAAG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4WX,CAAA;QACD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IAClB,CAAC;CACF;AAjXD,0DAiXC"}
1
+ {"version":3,"file":"Migration20240604100512.js","sourceRoot":"","sources":["../../src/migrations/Migration20240604100512.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,MAAM,GAAG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgWX,CAAA;QACD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IAClB,CAAC;CACF;AArWD,0DAqWC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/order",
3
- "version": "0.1.3-snapshot-20240717110205",
3
+ "version": "0.1.3-snapshot-20240717160031",
4
4
  "description": "Medusa Order module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,19 +34,19 @@
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-20240717110205",
37
+ "@medusajs/types": "1.12.0-snapshot-20240717160031",
38
38
  "@mikro-orm/cli": "5.9.7",
39
39
  "cross-env": "^5.2.1",
40
40
  "jest": "^29.7.0",
41
- "medusa-test-utils": "1.1.45-snapshot-20240717110205",
41
+ "medusa-test-utils": "1.1.45-snapshot-20240717160031",
42
42
  "rimraf": "^3.0.2",
43
43
  "ts-node": "^10.9.1",
44
44
  "tsc-alias": "^1.8.6",
45
45
  "typescript": "^5.1.6"
46
46
  },
47
47
  "dependencies": {
48
- "@medusajs/modules-sdk": "1.13.0-snapshot-20240717110205",
49
- "@medusajs/utils": "1.12.0-snapshot-20240717110205",
48
+ "@medusajs/modules-sdk": "1.13.0-snapshot-20240717160031",
49
+ "@medusajs/utils": "1.12.0-snapshot-20240717160031",
50
50
  "@mikro-orm/core": "5.9.7",
51
51
  "@mikro-orm/migrations": "5.9.7",
52
52
  "@mikro-orm/postgresql": "5.9.7",