@thinkerchain/flipper-entities 2.7.0 → 2.7.1

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 (102) hide show
  1. package/package.json +39 -39
  2. package/utilities/package.json +5 -5
  3. package/dist/enums/marketplace.d.ts +0 -16
  4. package/dist/enums/marketplace.d.ts.map +0 -1
  5. package/dist/enums/marketplace.js +0 -23
  6. package/dist/enums/marketplace.js.map +0 -1
  7. package/dist/index.d.ts +0 -29
  8. package/dist/index.d.ts.map +0 -1
  9. package/dist/index.js +0 -24
  10. package/dist/index.js.map +0 -1
  11. package/dist/types/banned-seller.types.d.ts +0 -26
  12. package/dist/types/banned-seller.types.d.ts.map +0 -1
  13. package/dist/types/banned-seller.types.js +0 -3
  14. package/dist/types/banned-seller.types.js.map +0 -1
  15. package/dist/types/billing-options.types.d.ts +0 -14
  16. package/dist/types/billing-options.types.d.ts.map +0 -1
  17. package/dist/types/billing-options.types.js +0 -3
  18. package/dist/types/billing-options.types.js.map +0 -1
  19. package/dist/types/core-options.types.d.ts +0 -98
  20. package/dist/types/core-options.types.d.ts.map +0 -1
  21. package/dist/types/core-options.types.js +0 -3
  22. package/dist/types/core-options.types.js.map +0 -1
  23. package/dist/types/engine.types.d.ts +0 -68
  24. package/dist/types/engine.types.d.ts.map +0 -1
  25. package/dist/types/engine.types.js +0 -3
  26. package/dist/types/engine.types.js.map +0 -1
  27. package/dist/types/item-check.types.d.ts +0 -15
  28. package/dist/types/item-check.types.d.ts.map +0 -1
  29. package/dist/types/item-check.types.js +0 -3
  30. package/dist/types/item-check.types.js.map +0 -1
  31. package/dist/types/item-filter.types.d.ts +0 -30
  32. package/dist/types/item-filter.types.d.ts.map +0 -1
  33. package/dist/types/item-filter.types.js +0 -3
  34. package/dist/types/item-filter.types.js.map +0 -1
  35. package/dist/types/item.types.d.ts +0 -40
  36. package/dist/types/item.types.d.ts.map +0 -1
  37. package/dist/types/item.types.js +0 -3
  38. package/dist/types/item.types.js.map +0 -1
  39. package/dist/types/option.types.d.ts +0 -13
  40. package/dist/types/option.types.d.ts.map +0 -1
  41. package/dist/types/option.types.js +0 -3
  42. package/dist/types/option.types.js.map +0 -1
  43. package/dist/types/product.types.d.ts +0 -81
  44. package/dist/types/product.types.d.ts.map +0 -1
  45. package/dist/types/product.types.js +0 -3
  46. package/dist/types/product.types.js.map +0 -1
  47. package/dist/types/scrape.types.d.ts +0 -42
  48. package/dist/types/scrape.types.d.ts.map +0 -1
  49. package/dist/types/scrape.types.js +0 -3
  50. package/dist/types/scrape.types.js.map +0 -1
  51. package/dist/types/search-jsonb.types.d.ts +0 -96
  52. package/dist/types/search-jsonb.types.d.ts.map +0 -1
  53. package/dist/types/search-jsonb.types.js +0 -3
  54. package/dist/types/search-jsonb.types.js.map +0 -1
  55. package/dist/types/search.types.d.ts +0 -32
  56. package/dist/types/search.types.d.ts.map +0 -1
  57. package/dist/types/search.types.js +0 -3
  58. package/dist/types/search.types.js.map +0 -1
  59. package/dist/types/seller-snapshot.types.d.ts +0 -53
  60. package/dist/types/seller-snapshot.types.d.ts.map +0 -1
  61. package/dist/types/seller-snapshot.types.js +0 -3
  62. package/dist/types/seller-snapshot.types.js.map +0 -1
  63. package/dist/types/seller-summary.types.d.ts +0 -35
  64. package/dist/types/seller-summary.types.d.ts.map +0 -1
  65. package/dist/types/seller-summary.types.js +0 -3
  66. package/dist/types/seller-summary.types.js.map +0 -1
  67. package/dist/types/subscription.types.d.ts +0 -96
  68. package/dist/types/subscription.types.d.ts.map +0 -1
  69. package/dist/types/subscription.types.js +0 -3
  70. package/dist/types/subscription.types.js.map +0 -1
  71. package/dist/types/usage.types.d.ts +0 -33
  72. package/dist/types/usage.types.d.ts.map +0 -1
  73. package/dist/types/usage.types.js +0 -3
  74. package/dist/types/usage.types.js.map +0 -1
  75. package/dist/types/user-channel.types.d.ts +0 -28
  76. package/dist/types/user-channel.types.d.ts.map +0 -1
  77. package/dist/types/user-channel.types.js +0 -3
  78. package/dist/types/user-channel.types.js.map +0 -1
  79. package/dist/types/user-item.types.d.ts +0 -15
  80. package/dist/types/user-item.types.d.ts.map +0 -1
  81. package/dist/types/user-item.types.js +0 -3
  82. package/dist/types/user-item.types.js.map +0 -1
  83. package/dist/types/user.types.d.ts +0 -25
  84. package/dist/types/user.types.d.ts.map +0 -1
  85. package/dist/types/user.types.js +0 -3
  86. package/dist/types/user.types.js.map +0 -1
  87. package/dist/utilities/index.d.ts +0 -9
  88. package/dist/utilities/index.d.ts.map +0 -1
  89. package/dist/utilities/index.js +0 -21
  90. package/dist/utilities/index.js.map +0 -1
  91. package/dist/utilities/scalar.d.ts +0 -12
  92. package/dist/utilities/scalar.d.ts.map +0 -1
  93. package/dist/utilities/scalar.js +0 -45
  94. package/dist/utilities/scalar.js.map +0 -1
  95. package/dist/utilities/seller-snapshot.d.ts +0 -41
  96. package/dist/utilities/seller-snapshot.d.ts.map +0 -1
  97. package/dist/utilities/seller-snapshot.js +0 -126
  98. package/dist/utilities/seller-snapshot.js.map +0 -1
  99. package/dist/utilities/seller-summary.d.ts +0 -22
  100. package/dist/utilities/seller-summary.d.ts.map +0 -1
  101. package/dist/utilities/seller-summary.js +0 -85
  102. package/dist/utilities/seller-summary.js.map +0 -1
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
- {
2
- "name": "@thinkerchain/flipper-entities",
3
- "version": "2.7.0",
4
- "private": false,
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "default": "./dist/index.js"
11
- },
12
- "./utilities": {
13
- "types": "./dist/utilities/index.d.ts",
14
- "default": "./dist/utilities/index.js"
15
- },
16
- "./utilities/*": {
17
- "types": "./dist/utilities/*.d.ts",
18
- "default": "./dist/utilities/*.js"
19
- }
20
- },
21
- "files": [
22
- "dist",
23
- "utilities",
24
- "README.md"
25
- ],
26
- "scripts": {
27
- "prebuild": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
28
- "build": "tsc",
29
- "test": "bun test src",
30
- "prepublishOnly": "bun run build"
31
- },
32
- "publishConfig": {
33
- "access": "public"
34
- },
35
- "devDependencies": {
36
- "typescript": "^5.0.0"
37
- },
38
- "license": "UNLICENSED"
39
- }
1
+ {
2
+ "name": "@thinkerchain/flipper-entities",
3
+ "version": "2.7.1",
4
+ "private": false,
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./utilities": {
13
+ "types": "./dist/utilities/index.d.ts",
14
+ "default": "./dist/utilities/index.js"
15
+ },
16
+ "./utilities/*": {
17
+ "types": "./dist/utilities/*.d.ts",
18
+ "default": "./dist/utilities/*.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "utilities",
24
+ "README.md"
25
+ ],
26
+ "scripts": {
27
+ "prebuild": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
28
+ "build": "tsc",
29
+ "test": "bun test src",
30
+ "prepublishOnly": "bun run build"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "devDependencies": {
36
+ "typescript": "^5.0.0"
37
+ },
38
+ "license": "UNLICENSED"
39
+ }
@@ -1,5 +1,5 @@
1
- {
2
- "comment": "Passthrough subpath untuk resolver lama (node10/CommonJS: be, core, engine) yang mengabaikan field `exports`. Jangan dihapus.",
3
- "main": "../dist/utilities/index.js",
4
- "types": "../dist/utilities/index.d.ts"
5
- }
1
+ {
2
+ "comment": "Passthrough subpath untuk resolver lama (node10/CommonJS: be, core, engine) yang mengabaikan field `exports`. Jangan dihapus.",
3
+ "main": "../dist/utilities/index.js",
4
+ "types": "../dist/utilities/index.d.ts"
5
+ }
@@ -1,16 +0,0 @@
1
- /**
2
- * SSOT marketplace yang didukung. Nilainya yang dipakai di DB, RMQ/IPC, dan UI
3
- * (huruf kecil). Jangan menulis literal `'facebook'` di service lain — impor
4
- * dari sini supaya penambahan marketplace cukup satu tempat.
5
- */
6
- export declare enum MarketplaceEnum {
7
- FACEBOOK = "facebook",
8
- TOKOPEDIA = "tokopedia",
9
- OLX = "olx"
10
- }
11
- export type Marketplace = MarketplaceEnum;
12
- /** Daftar marketplace untuk validasi/iterasi (mis. dropdown, DTO). */
13
- export declare const MARKETPLACES: readonly MarketplaceEnum[];
14
- /** Type guard marketplace yang dikenal. */
15
- export declare function isMarketplace(value: unknown): value is MarketplaceEnum;
16
- //# sourceMappingURL=marketplace.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"marketplace.d.ts","sourceRoot":"","sources":["../../src/enums/marketplace.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,GAAG,QAAQ;CACZ;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAE1C,sEAAsE;AACtE,eAAO,MAAM,YAAY,EAAE,SAAS,eAAe,EAElD,CAAC;AAEF,2CAA2C;AAC3C,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAKtE"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MARKETPLACES = exports.MarketplaceEnum = void 0;
4
- exports.isMarketplace = isMarketplace;
5
- /**
6
- * SSOT marketplace yang didukung. Nilainya yang dipakai di DB, RMQ/IPC, dan UI
7
- * (huruf kecil). Jangan menulis literal `'facebook'` di service lain — impor
8
- * dari sini supaya penambahan marketplace cukup satu tempat.
9
- */
10
- var MarketplaceEnum;
11
- (function (MarketplaceEnum) {
12
- MarketplaceEnum["FACEBOOK"] = "facebook";
13
- MarketplaceEnum["TOKOPEDIA"] = "tokopedia";
14
- MarketplaceEnum["OLX"] = "olx";
15
- })(MarketplaceEnum || (exports.MarketplaceEnum = MarketplaceEnum = {}));
16
- /** Daftar marketplace untuk validasi/iterasi (mis. dropdown, DTO). */
17
- exports.MARKETPLACES = Object.values(MarketplaceEnum);
18
- /** Type guard marketplace yang dikenal. */
19
- function isMarketplace(value) {
20
- return (typeof value === 'string' &&
21
- exports.MARKETPLACES.includes(value));
22
- }
23
- //# sourceMappingURL=marketplace.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"marketplace.js","sourceRoot":"","sources":["../../src/enums/marketplace.ts"],"names":[],"mappings":";;;AAmBA,sCAKC;AAxBD;;;;GAIG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,0CAAuB,CAAA;IACvB,8BAAW,CAAA;AACb,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAID,sEAAsE;AACzD,QAAA,YAAY,GAA+B,MAAM,CAAC,MAAM,CACnE,eAAe,CAChB,CAAC;AAEF,2CAA2C;AAC3C,SAAgB,aAAa,CAAC,KAAc;IAC1C,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACxB,oBAAkC,CAAC,QAAQ,CAAC,KAAK,CAAC,CACpD,CAAC;AACJ,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,29 +0,0 @@
1
- export type { UserEntity, UserWithRelations } from './types/user.types';
2
- export type { ItemEntity, ItemWithSearch } from './types/item.types';
3
- export type { ScrapedItem, SearchWithItems } from './types/scrape.types';
4
- export type { ItemFilterKey, InvalidFilterReason, ItemCheckStatus, CheckItemsRequest, } from './types/item-check.types';
5
- export type { ItemFilterResult, ItemFilterContext, BannedSellerMatch, } from './types/item-filter.types';
6
- export type { SellerIdentityProperty, SellerIdentity, FacebookSellerV1, SellerSnapshotV1, SellerSnapshotJSONB, } from './types/seller-snapshot.types';
7
- export type { SellerRating, SellerSummary, SellerSummaryJSONB, } from './types/seller-summary.types';
8
- export { MarketplaceEnum, MARKETPLACES, isMarketplace, } from './enums/marketplace';
9
- export type { Marketplace } from './enums/marketplace';
10
- /**
11
- * Helper runtime juga tersedia lewat subpath
12
- * `@thinkerchain/flipper-entities/utilities`; re-export di sini untuk
13
- * kompatibilitas pemanggil lama.
14
- */
15
- export { SELLER_SNAPSHOT_VERSION, createSellerSnapshot, parseSellerSnapshot, toSellerIdentities, toSellerMatchKey, toSellerSummary, isRecord, toIsoString, toNumberValue, toStringValue, } from './utilities';
16
- export type { SellerMatchMechanism } from './utilities';
17
- export type { UserItemEntity, RichNoteJSONB } from './types/user-item.types';
18
- export type { BannedSellerEntity } from './types/banned-seller.types';
19
- export type { SearchEntity, SearchWithUser } from './types/search.types';
20
- export type { EngineSearchRequest, EngineEnv, EngineChildInput, EngineScrapeInput, ScrapeTotals, ScrapeStatus, ScrapeIpcData, ScrapeIpcMessage, ScrapeDetailData, } from './types/engine.types';
21
- export type { ChannelEntity, TelegramChannelEntity, UserChannelEntity, } from './types/user-channel.types';
22
- export type { CoreEntity, DefaultValueEntity, StringMatchAlgorithm, StringMatcherType, DefaultItemFilterEntity, MarketPlacePropEntity, FacebookMarketPlacePropEntity, EngineEntity, EngineOptions, OrchestratorOptions, ProxyOptions, } from './types/core-options.types';
23
- export type { OptionEntity } from './types/option.types';
24
- export type { ProductKind, ProductFeature, ProductSearchProfileEntity, ProductChannelProfileEntity, ProductBannedSellerProfileEntity, ProductEntity, } from './types/product.types';
25
- export type { SubscriptionStatus, SubscriptionSource, SubscriptionProfileKind, SubscriptionSearchProfileEntity, SubscriptionChannelProfileEntity, SubscriptionBannedSellerProfileEntity, SubscriptionProfileSnapshot, SubscriptionSnapshot, SubscriptionEntity, SubscriptionWithProduct, } from './types/subscription.types';
26
- export type { BillingValueJSONB } from './types/billing-options.types';
27
- export type { UsageProfileMetric, UsageMetric, SubscriptionUsageSummary, } from './types/usage.types';
28
- export type { LocationJSONB, MarketPlacePropJSONB, ItemFilterImage, ItemFilterLink, ItemFilterLocation, ItemFilterName, ItemFilterPrice, ItemFilterYear, ItemFilterDescription, ItemFilterRating, ItemFilterScam, ItemFilterJSONB, CoreValueJSONB, } from './types/search-jsonb.types';
29
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAExE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAErE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEzE,YAAY,EACV,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EACV,YAAY,EACZ,aAAa,EACb,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,eAAe,EACf,YAAY,EACZ,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;GAIG;AACH,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,WAAW,EACX,aAAa,EACb,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7E,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEzE,YAAY,EACV,mBAAmB,EACnB,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,aAAa,EACb,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,6BAA6B,EAC7B,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,YAAY,GACb,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,YAAY,EACV,WAAW,EACX,cAAc,EACd,0BAA0B,EAC1B,2BAA2B,EAC3B,gCAAgC,EAChC,aAAa,GACd,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,+BAA+B,EAC/B,gCAAgC,EAChC,qCAAqC,EACrC,2BAA2B,EAC3B,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,YAAY,EACV,kBAAkB,EAClB,WAAW,EACX,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,4BAA4B,CAAC"}
package/dist/index.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toStringValue = exports.toNumberValue = exports.toIsoString = exports.isRecord = exports.toSellerSummary = exports.toSellerMatchKey = exports.toSellerIdentities = exports.parseSellerSnapshot = exports.createSellerSnapshot = exports.SELLER_SNAPSHOT_VERSION = exports.isMarketplace = exports.MARKETPLACES = exports.MarketplaceEnum = void 0;
4
- var marketplace_1 = require("./enums/marketplace");
5
- Object.defineProperty(exports, "MarketplaceEnum", { enumerable: true, get: function () { return marketplace_1.MarketplaceEnum; } });
6
- Object.defineProperty(exports, "MARKETPLACES", { enumerable: true, get: function () { return marketplace_1.MARKETPLACES; } });
7
- Object.defineProperty(exports, "isMarketplace", { enumerable: true, get: function () { return marketplace_1.isMarketplace; } });
8
- /**
9
- * Helper runtime juga tersedia lewat subpath
10
- * `@thinkerchain/flipper-entities/utilities`; re-export di sini untuk
11
- * kompatibilitas pemanggil lama.
12
- */
13
- var utilities_1 = require("./utilities");
14
- Object.defineProperty(exports, "SELLER_SNAPSHOT_VERSION", { enumerable: true, get: function () { return utilities_1.SELLER_SNAPSHOT_VERSION; } });
15
- Object.defineProperty(exports, "createSellerSnapshot", { enumerable: true, get: function () { return utilities_1.createSellerSnapshot; } });
16
- Object.defineProperty(exports, "parseSellerSnapshot", { enumerable: true, get: function () { return utilities_1.parseSellerSnapshot; } });
17
- Object.defineProperty(exports, "toSellerIdentities", { enumerable: true, get: function () { return utilities_1.toSellerIdentities; } });
18
- Object.defineProperty(exports, "toSellerMatchKey", { enumerable: true, get: function () { return utilities_1.toSellerMatchKey; } });
19
- Object.defineProperty(exports, "toSellerSummary", { enumerable: true, get: function () { return utilities_1.toSellerSummary; } });
20
- Object.defineProperty(exports, "isRecord", { enumerable: true, get: function () { return utilities_1.isRecord; } });
21
- Object.defineProperty(exports, "toIsoString", { enumerable: true, get: function () { return utilities_1.toIsoString; } });
22
- Object.defineProperty(exports, "toNumberValue", { enumerable: true, get: function () { return utilities_1.toNumberValue; } });
23
- Object.defineProperty(exports, "toStringValue", { enumerable: true, get: function () { return utilities_1.toStringValue; } });
24
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAiCA,mDAI6B;AAH3B,8GAAA,eAAe,OAAA;AACf,2GAAA,YAAY,OAAA;AACZ,4GAAA,aAAa,OAAA;AAIf;;;;GAIG;AACH,yCAWqB;AAVnB,oHAAA,uBAAuB,OAAA;AACvB,iHAAA,oBAAoB,OAAA;AACpB,gHAAA,mBAAmB,OAAA;AACnB,+GAAA,kBAAkB,OAAA;AAClB,6GAAA,gBAAgB,OAAA;AAChB,4GAAA,eAAe,OAAA;AACf,qGAAA,QAAQ,OAAA;AACR,wGAAA,WAAW,OAAA;AACX,0GAAA,aAAa,OAAA;AACb,0GAAA,aAAa,OAAA"}
@@ -1,26 +0,0 @@
1
- import type { SellerSnapshotJSONB } from './seller-snapshot.types';
2
- import type { SellerSummaryJSONB } from './seller-summary.types';
3
- /** Representasi tabel `BannedSeller`. */
4
- export type BannedSellerEntity = {
5
- id: number;
6
- userId: number;
7
- marketplace: string;
8
- sellerId: string;
9
- sellerName: string | null;
10
- sellerSnapshot?: SellerSnapshotJSONB | null;
11
- /**
12
- * Ringkasan seller (avatar, rating, verified) — TURUNAN `sellerSnapshot`
13
- * saat baca, bukan kolom DB.
14
- */
15
- sellerOther?: SellerSummaryJSONB | null;
16
- subscriptionId?: number | null;
17
- subscriptionProfileId?: number | null;
18
- isSubscriptionActive?: boolean;
19
- subscriptionName?: string | null;
20
- deleted: boolean;
21
- createdAt: string;
22
- createdBy: string | null;
23
- updatedAt: string;
24
- updatedBy: string | null;
25
- };
26
- //# sourceMappingURL=banned-seller.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"banned-seller.types.d.ts","sourceRoot":"","sources":["../../src/types/banned-seller.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,yCAAyC;AACzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC5C;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=banned-seller.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"banned-seller.types.js","sourceRoot":"","sources":["../../src/types/banned-seller.types.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- /** Nilai kolom `Option.value` untuk `name='billing'` (konfigurasi trial & enforcement). */
2
- export interface BillingValueJSONB {
3
- /** Produk yang dipakai untuk trial. */
4
- trialProductKey: string;
5
- /** Lama trial dalam hari. */
6
- trialDays: number;
7
- /** Toleransi hari setelah periode habis sebelum langganan dianggap mati. */
8
- graceDays: number;
9
- /** true = user tanpa langganan otomatis dapat trial saat register / pertama diakses. */
10
- autoTrial: boolean;
11
- /** true = kuota ditegakkan (create-time + runtime). false = mode aman/dry-run. */
12
- enforcementEnabled: boolean;
13
- }
14
- //# sourceMappingURL=billing-options.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-options.types.d.ts","sourceRoot":"","sources":["../../src/types/billing-options.types.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,MAAM,WAAW,iBAAiB;IAChC,uCAAuC;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,SAAS,EAAE,MAAM,CAAC;IAClB,wFAAwF;IACxF,SAAS,EAAE,OAAO,CAAC;IACnB,kFAAkF;IAClF,kBAAkB,EAAE,OAAO,CAAC;CAC7B"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=billing-options.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-options.types.js","sourceRoot":"","sources":["../../src/types/billing-options.types.ts"],"names":[],"mappings":""}
@@ -1,98 +0,0 @@
1
- export interface CoreEntity {
2
- proxy: ProxyOptions;
3
- orchestrator: OrchestratorOptions;
4
- engine: EngineEntity;
5
- defaultValue: DefaultValueEntity;
6
- }
7
- export interface DefaultValueEntity {
8
- itemFilter: DefaultItemFilterEntity;
9
- marketPlaceProp: {
10
- facebook: FacebookMarketPlacePropEntity;
11
- };
12
- }
13
- export interface StringMatchAlgorithm {
14
- word: string;
15
- option: {
16
- useJaroWinklerAlgorithm: boolean;
17
- threshold: number;
18
- };
19
- }
20
- export type StringMatcherType = string | StringMatchAlgorithm;
21
- export interface DefaultItemFilterEntity {
22
- type: string;
23
- name: {
24
- contain?: StringMatcherType[];
25
- notContain?: StringMatcherType[];
26
- noEmptyValue?: boolean;
27
- };
28
- image?: {
29
- noEmptyValue?: boolean;
30
- };
31
- link?: {
32
- noEmptyValue?: boolean;
33
- };
34
- price?: {
35
- noEmptyValue?: boolean;
36
- noAscending?: boolean;
37
- noDescending?: boolean;
38
- noSameValue?: boolean | {
39
- maxSameValueLength: number;
40
- };
41
- minPrice?: number;
42
- maxPrice?: number;
43
- };
44
- location?: {
45
- name?: {
46
- noEmptyValue?: boolean;
47
- contain?: StringMatcherType[];
48
- notContain?: StringMatcherType[];
49
- };
50
- geoFencing?: {
51
- active?: boolean;
52
- noEmptyValue?: boolean;
53
- };
54
- };
55
- year?: {
56
- noEmptyValue?: boolean;
57
- year?: number;
58
- minYear?: number;
59
- maxYear?: number;
60
- };
61
- description?: {
62
- noEmptyValue?: boolean;
63
- contain?: StringMatcherType[];
64
- notContain?: StringMatcherType[];
65
- };
66
- rating?: {
67
- noEmptyValue?: boolean;
68
- minRating?: number;
69
- };
70
- }
71
- export interface MarketPlacePropEntity {
72
- type?: string;
73
- }
74
- export interface FacebookMarketPlacePropEntity extends MarketPlacePropEntity {
75
- category?: string;
76
- subCategory?: string;
77
- }
78
- export interface EngineEntity {
79
- searchItemChunk: number;
80
- pageTabPartitionSize: number;
81
- redisTtlSeconds: number;
82
- }
83
- export interface EngineOptions {
84
- pageTabPartitionSize: number;
85
- scrapeItemChunkSize: number;
86
- }
87
- export interface OrchestratorOptions {
88
- active: boolean;
89
- orchestratorInterval: number;
90
- orchestratorChunkSize: number;
91
- }
92
- export interface ProxyOptions {
93
- username: string;
94
- password: string;
95
- host: string;
96
- port: number;
97
- }
98
- //# sourceMappingURL=core-options.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core-options.types.d.ts","sourceRoot":"","sources":["../../src/types/core-options.types.ts"],"names":[],"mappings":"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"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=core-options.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core-options.types.js","sourceRoot":"","sources":["../../src/types/core-options.types.ts"],"names":[],"mappings":""}
@@ -1,68 +0,0 @@
1
- import type { CoreEntity, ProxyOptions } from './core-options.types';
2
- import type { SearchWithItems } from './scrape.types';
3
- import type { SearchWithUser } from './search.types';
4
- import type { SellerSnapshotJSONB } from './seller-snapshot.types';
5
- /** Payload RMQ `engine.search`: orchestrator core -> engine. Search saja, tanpa item. */
6
- export type EngineSearchRequest = {
7
- option: CoreEntity;
8
- searches: SearchWithUser[];
9
- };
10
- /** Env yang di-inject ke child process engine (via JSON argv). */
11
- export type EngineEnv = {
12
- NODE_ENV: string;
13
- HOSTNAME: string;
14
- IS_USE_PROXY: boolean;
15
- PAGE_TAB_PARTITION_SIZE: number;
16
- SEARCH_ITEM_PER_BROWSER_CHUNK_SIZE: number;
17
- SCREENSHOT_ERROR_DIR: string;
18
- SCREENSHOT_PAGE_DIR: string;
19
- REDIS_HOST: string;
20
- REDIS_PORT: number;
21
- REDIS_PASSWORD: string;
22
- };
23
- /** Input child process engine (`main.ts` -> scraper). */
24
- export type EngineChildInput = {
25
- option: CoreEntity;
26
- searches: SearchWithUser[];
27
- env: EngineEnv;
28
- };
29
- /** Input use case scraping di child process. */
30
- export type EngineScrapeInput = {
31
- searches: SearchWithUser[];
32
- env: EngineEnv;
33
- proxy: ProxyOptions;
34
- };
35
- export type ScrapeTotals = {
36
- new: number;
37
- exist: number;
38
- duplicate: number;
39
- invalid: number;
40
- };
41
- /** Ringkasan run dari child process (pesan `scrape-status`). */
42
- export type ScrapeStatus = {
43
- ok?: boolean;
44
- listCount?: number;
45
- totals?: ScrapeTotals;
46
- durationMs?: number;
47
- };
48
- /** Envelope IPC parent <-> child process engine. */
49
- export type ScrapeIpcData = boolean | ScrapeStatus | SearchWithItems | SearchWithItems[];
50
- export type ScrapeIpcMessage = {
51
- type: string;
52
- id: number;
53
- data: ScrapeIpcData;
54
- };
55
- /** Hasil detail scraping (obscura) untuk satu listing. */
56
- export type ScrapeDetailData = {
57
- description: string | null;
58
- image: string | null;
59
- creationTime: number | null;
60
- reverseGeocode: Record<string, unknown> | null;
61
- buyLocation: Record<string, unknown> | null;
62
- productDetailsType: string | null;
63
- sellerSnapshot: SellerSnapshotJSONB | null;
64
- scrapeMs?: number;
65
- extractorSource?: string | null;
66
- attempt?: number;
67
- };
68
- //# sourceMappingURL=engine.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"engine.types.d.ts","sourceRoot":"","sources":["../../src/types/engine.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,yFAAyF;AACzF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B,CAAC;AAEF,kEAAkE;AAClE,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,uBAAuB,EAAE,MAAM,CAAC;IAChC,kCAAkC,EAAE,MAAM,CAAC;IAC3C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,yDAAyD;AACzD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,GAAG,EAAE,SAAS,CAAC;CAChB,CAAC;AAEF,gDAAgD;AAChD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,GAAG,EAAE,SAAS,CAAC;IACf,KAAK,EAAE,YAAY,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gEAAgE;AAChE,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oDAAoD;AACpD,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,YAAY,GACZ,eAAe,GACf,eAAe,EAAE,CAAC;AAEtB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,0DAA0D;AAC1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC5C,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=engine.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"engine.types.js","sourceRoot":"","sources":["../../src/types/engine.types.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- import type { SearchWithItems } from './scrape.types';
2
- export type ItemFilterKey = 'name' | 'price' | 'year' | 'description' | 'rating' | 'seller' | 'geofencing';
3
- export type InvalidFilterReason = {
4
- key: ItemFilterKey;
5
- condition?: string;
6
- value?: unknown;
7
- reason: string;
8
- };
9
- export type ItemCheckStatus = 'new' | 'new-but-duplicate-with-other-search' | 'already-exist';
10
- /** Payload RMQ `core.item.checkItems`: filter mana yang dijalankan untuk satu search. */
11
- export type CheckItemsRequest = {
12
- filterKeys: ItemFilterKey[];
13
- search: SearchWithItems;
14
- };
15
- //# sourceMappingURL=item-check.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item-check.types.d.ts","sourceRoot":"","sources":["../../src/types/item-check.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,OAAO,GACP,MAAM,GACN,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,YAAY,CAAC;AAEjB,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,aAAa,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GACvB,KAAK,GACL,qCAAqC,GACrC,eAAe,CAAC;AAEpB,yFAAyF;AACzF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=item-check.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item-check.types.js","sourceRoot":"","sources":["../../src/types/item-check.types.ts"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- import type { ItemFilterKey } from './item-check.types';
2
- import type { SellerIdentityProperty } from './seller-snapshot.types';
3
- import type { UserWithRelations } from './user.types';
4
- export type ItemFilterResult = {
5
- valid: boolean;
6
- key?: ItemFilterKey;
7
- condition?: string;
8
- value?: unknown;
9
- reason?: string;
10
- info?: string;
11
- };
12
- /**
13
- * Satu ban yang siap dicocokkan. Map-nya ber-key
14
- * `${prefix mekanisme}:${marketplace huruf kecil}:${nilai}` (lihat
15
- * `toSellerMatchKey`) — `S` untuk ban bersnapshot, `L` untuk ban lama tanpa
16
- * snapshot, supaya kedua mekanisme tidak pernah saling cocok. Di dalam
17
- * mekanisme `snapshot` sengaja tidak dipisah per property, karena matching
18
- * lintas property diinginkan (id listing vs `marketplace_user_profile.id` ban
19
- * tetap kena).
20
- */
21
- export type BannedSellerMatch = {
22
- banId: number;
23
- property: SellerIdentityProperty;
24
- sellerName: string | null;
25
- };
26
- export type ItemFilterContext = {
27
- user?: UserWithRelations;
28
- bannedSellers: ReadonlyMap<string, BannedSellerMatch>;
29
- };
30
- //# sourceMappingURL=item-filter.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item-filter.types.d.ts","sourceRoot":"","sources":["../../src/types/item-filter.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,sBAAsB,CAAC;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CACvD,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=item-filter.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item-filter.types.js","sourceRoot":"","sources":["../../src/types/item-filter.types.ts"],"names":[],"mappings":""}
@@ -1,40 +0,0 @@
1
- import type { SearchWithUser } from './search.types';
2
- import type { SellerSnapshotJSONB } from './seller-snapshot.types';
3
- import type { SellerSummaryJSONB } from './seller-summary.types';
4
- /** Representasi tabel `Item`. */
5
- export type ItemEntity = {
6
- id: number;
7
- searchId: number;
8
- userId: number;
9
- marketPlaceId: string | null;
10
- marketPlaceName: string | null;
11
- sellerId: string | null;
12
- sellerName: string | null;
13
- sellerSnapshot?: SellerSnapshotJSONB | null;
14
- /**
15
- * Ringkasan seller (avatar, rating, verified) — TURUNAN `sellerSnapshot`
16
- * saat baca, bukan kolom DB.
17
- */
18
- sellerOther?: SellerSummaryJSONB | null;
19
- type: string | null;
20
- name: string | null;
21
- image: string | null;
22
- link: string | null;
23
- price: number | null;
24
- formattedAmount: string | null;
25
- location: string | null;
26
- year: number | null;
27
- other: Record<string, unknown> | null;
28
- description: string | null;
29
- isValid: boolean;
30
- deleted: boolean;
31
- createdAt: string;
32
- createdBy: string | null;
33
- updatedAt: string;
34
- updatedBy: string | null;
35
- };
36
- /** Item + search pemiliknya (dipakai filter core). */
37
- export type ItemWithSearch = ItemEntity & {
38
- search: SearchWithUser | null;
39
- };
40
- //# sourceMappingURL=item.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item.types.d.ts","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,iCAAiC;AACjC,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC5C;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,sDAAsD;AACtD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG;IACxC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=item.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item.types.js","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- import type { CoreValueJSONB } from './search-jsonb.types';
2
- /** Representasi tabel `Option`. */
3
- export type OptionEntity = {
4
- id: number;
5
- name: string;
6
- value: CoreValueJSONB | null;
7
- deleted: boolean;
8
- createdAt: string;
9
- createdBy: string | null;
10
- updatedAt: string;
11
- updatedBy: string | null;
12
- };
13
- //# sourceMappingURL=option.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"option.types.d.ts","sourceRoot":"","sources":["../../src/types/option.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,mCAAmC;AACnC,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=option.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"option.types.js","sourceRoot":"","sources":["../../src/types/option.types.ts"],"names":[],"mappings":""}