@devx-commerce/plugin-gati 0.0.2-beta.4 → 0.0.2-beta.5
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/.medusa/server/src/modules/extended-product/migrations/{Migration20250502071544.js → Migration20250502124952.js} +10 -4
- package/.medusa/server/src/modules/extended-variant/migrations/{Migration20250502071544.js → Migration20250502124952.js} +4 -4
- package/package.json +1 -1
- package/.medusa/server/src/modules/extended-product/migrations/Migration20250502122607.js +0 -17
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Migration20250502124952 = void 0;
|
|
4
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
-
class
|
|
5
|
+
class Migration20250502124952 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql(`create table if not exists "extended_product" ("id" text not null, "style_id" integer not null, "style_date" timestamptz not null, "style_code" text not null, "style_alias_no" text not null, "category" text not null, "sub_category" text not null, "manufacturer" text not null, "manufacturer_no" text not null, "make_type" text not null, "stock_type" text not null, "item_size" text not null, "brand" text not null, "gender" text check ("gender" in ('Men', 'Women', 'Unisex', 'Kids')) not null, "shape_code" text not null, "is_complete" boolean not null, "restricted" boolean not null, "currency" text not null, "rate_chart" text not null, "discount_markup" text not null, "cost" real not null, "mrp" real not null, "hsn_code" text not null, "gross_weight" real not null, "net_weight" real not null, "wax_weight" real not null, "model_weight" real not null, "metal" text not null, "metal_purity" text not null, "metal_color" text not null, "total_diamond_pcs" integer not null, "total_diamond_weight" real not null, "total_client_diamond_pcs" integer not null, "total_client_diamond_weight" real not null, "total_stone_pcs" integer not null, "total_stone_weight" real not null, "total_cz_pcs" integer not null, "total_cz_weight" real not null, "web_description" text not null, "remarks" text not null, "customer_remarks" text not null, "special_remarks" text not null, "metal_total_cost" real not null, "diamond_total_cost" real not null, "stone_total_cost" real not null, "cpf_total_cost" real not null, "metal_total_amount" real not null, "diamond_total_amount" real not null, "stone_total_amount" real not null, "cpf_total_amount" real not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "extended_product_pkey" primary key ("id"));`);
|
|
8
8
|
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_extended_product_deleted_at" ON "extended_product" (deleted_at) WHERE deleted_at IS NULL;`);
|
|
9
9
|
this.addSql(`create table if not exists "style_details_line" ("id" text not null, "style_id" integer not null, "style_mst_detail_id" integer not null, "item_code" text not null, "raw_type" text not null, "material_group" text not null, "raw_code" text not null, "shape_code" text not null, "qly_code" text not null, "tone_code" text not null, "description" text not null, "size" text not null, "accessories" text not null, "setting" text not null, "is_base" boolean not null, "is_center_stone" boolean not null, "pieces" integer not null, "weight" real not null, "min_weight" real not null, "max_weight" real not null, "stone_wt" real not null, "default_wt" real not null, "raw_formula" text not null, "cost_rate" real not null, "cost_amount" real not null, "hand_cost_rate" real not null, "hand_cost_amount" real not null, "set_cost_rate" real not null, "set_cost_amount" real not null, "loss_cost_per" real not null, "loss_cost_per_is_fix" boolean not null, "loss_cost_weight" real not null, "loss_cost_amt" real not null, "cpf_cost_rate" real not null, "cpf_cost_is_fix" boolean not null, "cpf_cost_amt" real not null, "rate" real not null, "amount" real not null, "hand_rate" real not null, "hand_amount" real not null, "set_rate" real not null, "set_amount" real not null, "loss_per" real not null, "loss_per_is_fix" boolean not null, "loss_weight" real not null, "loss_amt" real not null, "cpf_rate" real not null, "cpf_is_fix" boolean not null, "cpf_amt" real not null, "extended_product_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "style_details_line_pkey" primary key ("id"));`);
|
|
10
10
|
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_style_details_line_extended_product_id" ON "style_details_line" (extended_product_id) WHERE deleted_at IS NULL;`);
|
|
11
11
|
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_style_details_line_deleted_at" ON "style_details_line" (deleted_at) WHERE deleted_at IS NULL;`);
|
|
12
|
+
this.addSql(`create table if not exists "style_exploration_line" ("id" text not null, "style_id" integer not null, "exploration_code" text not null, "exploration_value" text not null, "extended_product_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "style_exploration_line_pkey" primary key ("id"));`);
|
|
13
|
+
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_style_exploration_line_extended_product_id" ON "style_exploration_line" (extended_product_id) WHERE deleted_at IS NULL;`);
|
|
14
|
+
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_style_exploration_line_deleted_at" ON "style_exploration_line" (deleted_at) WHERE deleted_at IS NULL;`);
|
|
12
15
|
this.addSql(`alter table if exists "style_details_line" add constraint "style_details_line_extended_product_id_foreign" foreign key ("extended_product_id") references "extended_product" ("id") on update cascade;`);
|
|
16
|
+
this.addSql(`alter table if exists "style_exploration_line" add constraint "style_exploration_line_extended_product_id_foreign" foreign key ("extended_product_id") references "extended_product" ("id") on update cascade;`);
|
|
13
17
|
}
|
|
14
18
|
async down() {
|
|
15
19
|
this.addSql(`alter table if exists "style_details_line" drop constraint if exists "style_details_line_extended_product_id_foreign";`);
|
|
20
|
+
this.addSql(`alter table if exists "style_exploration_line" drop constraint if exists "style_exploration_line_extended_product_id_foreign";`);
|
|
16
21
|
this.addSql(`drop table if exists "extended_product" cascade;`);
|
|
17
22
|
this.addSql(`drop table if exists "style_details_line" cascade;`);
|
|
23
|
+
this.addSql(`drop table if exists "style_exploration_line" cascade;`);
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
|
-
exports.
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
exports.Migration20250502124952 = Migration20250502124952;
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MDIxMjQ5NTIu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yxDQUFDO1FBRWhFLElBQUksQ0FBQyxNQUFNLENBQUMsb0RBQW9ELENBQUMsQ0FBQztRQUVsRSxJQUFJLENBQUMsTUFBTSxDQUFDLHdEQUF3RCxDQUFDLENBQUM7SUFDeEUsQ0FBQztDQUVGO0FBL0JELDBEQStCQyJ9
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Migration20250502124952 = void 0;
|
|
4
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
-
class
|
|
5
|
+
class Migration20250502124952 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql(`create table if not exists "extended_variant" ("id" text not null, "thumbnail" text not null, "images" text[] not null, "party_style_id" integer not null, "party_style_date" timestamptz not null, "party_style_code" text not null, "party_style_alias_no" text not null, "style_id" integer not null, "style_code" text not null, "category" text not null, "sub_category" text not null, "manufacturer" text not null, "manufacturer_no" text not null, "make_type" text not null, "stock_type" text not null, "item_size" text not null, "brand" text not null, "gender" text check ("gender" in ('Men', 'Women', 'Unisex', 'Kids')) not null, "shape_code" text not null, "is_complete" boolean not null, "restricted" boolean not null, "currency" text not null, "rate_chart" text not null, "discount_markup" text not null, "cost" real not null, "mrp" real not null, "hsn_code" text not null, "gross_weight" real not null, "net_weight" real not null, "wax_weight" real not null, "model_weight" real not null, "metal" text not null, "metal_purity" text not null, "metal_color" text not null, "total_diamond_pcs" integer not null, "total_diamond_weight" real not null, "total_client_diamond_pcs" integer not null, "total_client_diamond_weight" real not null, "total_stone_pcs" integer not null, "total_stone_weight" real not null, "total_cz_pcs" integer not null, "total_cz_weight" real not null, "web_description" text not null, "remarks" text not null, "customer_remarks" text not null, "special_remarks" text not null, "metal_total_cost" real not null, "diamond_total_cost" real not null, "stone_total_cost" real not null, "cpf_total_cost" real not null, "metal_total_amount" real not null, "diamond_total_amount" real not null, "stone_total_amount" real not null, "cpf_total_amount" real not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "extended_variant_pkey" primary key ("id"));`);
|
|
8
8
|
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_extended_variant_deleted_at" ON "extended_variant" (deleted_at) WHERE deleted_at IS NULL;`);
|
|
@@ -23,5 +23,5 @@ class Migration20250502071544 extends migrations_1.Migration {
|
|
|
23
23
|
this.addSql(`drop table if exists "party_style_exploration_line" cascade;`);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
exports.
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
exports.Migration20250502124952 = Migration20250502124952;
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MDIxMjQ5NTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9leHRlbmRlZC12YXJpYW50L21pZ3JhdGlvbnMvTWlncmF0aW9uMjAyNTA1MDIxMjQ5NTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQWtEO0FBRWxELE1BQWEsdUJBQXdCLFNBQVEsc0JBQVM7SUFFM0MsS0FBSyxDQUFDLEVBQUU7UUFDZixJQUFJLENBQUMsTUFBTSxDQUFDLGc3REFBZzdELENBQUMsQ0FBQztRQUM5N0QsSUFBSSxDQUFDLE1BQU0sQ0FBQywySEFBMkgsQ0FBQyxDQUFDO1FBRXpJLElBQUksQ0FBQyxNQUFNLENBQUMsaXJEQUFpckQsQ0FBQyxDQUFDO1FBQy9yRCxJQUFJLENBQUMsTUFBTSxDQUFDLDZKQUE2SixDQUFDLENBQUM7UUFDM0ssSUFBSSxDQUFDLE1BQU0sQ0FBQywySUFBMkksQ0FBQyxDQUFDO1FBRXpKLElBQUksQ0FBQyxNQUFNLENBQUMsa2FBQWthLENBQUMsQ0FBQztRQUNoYixJQUFJLENBQUMsTUFBTSxDQUFDLHFLQUFxSyxDQUFDLENBQUM7UUFDbkwsSUFBSSxDQUFDLE1BQU0sQ0FBQyxtSkFBbUosQ0FBQyxDQUFDO1FBRWpLLElBQUksQ0FBQyxNQUFNLENBQUMsb05BQW9OLENBQUMsQ0FBQztRQUVsTyxJQUFJLENBQUMsTUFBTSxDQUFDLDROQUE0TixDQUFDLENBQUM7SUFDNU8sQ0FBQztJQUVRLEtBQUssQ0FBQyxJQUFJO1FBQ2pCLElBQUksQ0FBQyxNQUFNLENBQUMsb0lBQW9JLENBQUMsQ0FBQztRQUVsSixJQUFJLENBQUMsTUFBTSxDQUFDLDRJQUE0SSxDQUFDLENBQUM7UUFFMUosSUFBSSxDQUFDLE1BQU0sQ0FBQyxrREFBa0QsQ0FBQyxDQUFDO1FBRWhFLElBQUksQ0FBQyxNQUFNLENBQUMsMERBQTBELENBQUMsQ0FBQztRQUV4RSxJQUFJLENBQUMsTUFBTSxDQUFDLDhEQUE4RCxDQUFDLENBQUM7SUFDOUUsQ0FBQztDQUVGO0FBL0JELDBEQStCQyJ9
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Migration20250502122607 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
-
class Migration20250502122607 extends migrations_1.Migration {
|
|
6
|
-
async up() {
|
|
7
|
-
this.addSql(`create table if not exists "style_exploration_line" ("id" text not null, "style_id" integer not null, "exploration_code" text not null, "exploration_value" text not null, "extended_product_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "style_exploration_line_pkey" primary key ("id"));`);
|
|
8
|
-
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_style_exploration_line_extended_product_id" ON "style_exploration_line" (extended_product_id) WHERE deleted_at IS NULL;`);
|
|
9
|
-
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_style_exploration_line_deleted_at" ON "style_exploration_line" (deleted_at) WHERE deleted_at IS NULL;`);
|
|
10
|
-
this.addSql(`alter table if exists "style_exploration_line" add constraint "style_exploration_line_extended_product_id_foreign" foreign key ("extended_product_id") references "extended_product" ("id") on update cascade;`);
|
|
11
|
-
}
|
|
12
|
-
async down() {
|
|
13
|
-
this.addSql(`drop table if exists "style_exploration_line" cascade;`);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.Migration20250502122607 = Migration20250502122607;
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MDIxMjI2MDcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9leHRlbmRlZC1wcm9kdWN0L21pZ3JhdGlvbnMvTWlncmF0aW9uMjAyNTA1MDIxMjI2MDcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQWtEO0FBRWxELE1BQWEsdUJBQXdCLFNBQVEsc0JBQVM7SUFFM0MsS0FBSyxDQUFDLEVBQUU7UUFDZixJQUFJLENBQUMsTUFBTSxDQUFDLGdaQUFnWixDQUFDLENBQUM7UUFDOVosSUFBSSxDQUFDLE1BQU0sQ0FBQyx5SkFBeUosQ0FBQyxDQUFDO1FBQ3ZLLElBQUksQ0FBQyxNQUFNLENBQUMsdUlBQXVJLENBQUMsQ0FBQztRQUVySixJQUFJLENBQUMsTUFBTSxDQUFDLGdOQUFnTixDQUFDLENBQUM7SUFDaE8sQ0FBQztJQUVRLEtBQUssQ0FBQyxJQUFJO1FBQ2pCLElBQUksQ0FBQyxNQUFNLENBQUMsd0RBQXdELENBQUMsQ0FBQztJQUN4RSxDQUFDO0NBRUY7QUFkRCwwREFjQyJ9
|