cmp-aws-database 1.7.1-dev.23 → 1.7.1-dev.25
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/dist/customer-user/content/content-model.d.ts +2 -0
- package/dist/customer-user/content/content-model.js +5 -1
- package/dist/customer-user/platter-ranking/platter-ranking-dao.d.ts +13 -0
- package/dist/customer-user/platter-ranking/platter-ranking-dao.js +32 -0
- package/dist/customer-user/platter-ranking/platter-ranking-model.d.ts +22 -0
- package/dist/customer-user/platter-ranking/platter-ranking-model.js +92 -0
- package/index.js +62 -0
- package/package.json +1 -1
|
@@ -14,4 +14,6 @@ export declare class ContentModel extends BaseModel {
|
|
|
14
14
|
contentActive: string;
|
|
15
15
|
description?: string;
|
|
16
16
|
content_title?: string[];
|
|
17
|
+
/** Arbitrary string key–value pairs (DynamoDB Map); extend schema without new columns */
|
|
18
|
+
metadata?: Record<string, string>;
|
|
17
19
|
}
|
|
@@ -77,7 +77,11 @@ __decorate([
|
|
|
77
77
|
(0, annotations_1.attribute)(),
|
|
78
78
|
__metadata("design:type", Array)
|
|
79
79
|
], ContentModel.prototype, "content_title", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, annotations_1.attribute)({ memberType: "String" }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], ContentModel.prototype, "metadata", void 0);
|
|
80
84
|
exports.ContentModel = ContentModel = __decorate([
|
|
81
85
|
(0, annotations_1.table)("ContentTable")
|
|
82
86
|
], ContentModel);
|
|
83
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
87
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jdXN0b21lci11c2VyL2NvbnRlbnQvY29udGVudC1tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIj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vdXQgbmV3IGNvbHVtbnMgKi9cbiAgICBAYXR0cmlidXRlKHsgbWVtYmVyVHlwZTogXCJTdHJpbmdcIiB9KVxuICAgIG1ldGFkYXRhPzogUmVjb3JkPHN0cmluZywgc3RyaW5nPjtcbn0iXX0=
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GenericDAO } from "../../base-dao";
|
|
2
|
+
import { PlatterRankingModel } from "./platter-ranking-model";
|
|
3
|
+
declare class PlatterRankingDao extends GenericDAO<PlatterRankingModel> {
|
|
4
|
+
/**
|
|
5
|
+
* Query `occasionAndPlatterTypeIndex` for the given keys; returns only ACTIVE rows.
|
|
6
|
+
* @param occasionType - The occasion type to filter by.
|
|
7
|
+
* @param platterType - The platter type to filter by.
|
|
8
|
+
* @returns The list of platter rankings.
|
|
9
|
+
*/
|
|
10
|
+
getAllPlatterRankings: (occasionType: string, platterType: string) => Promise<PlatterRankingModel[]>;
|
|
11
|
+
}
|
|
12
|
+
export declare const platterRankingDao: PlatterRankingDao;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.platterRankingDao = void 0;
|
|
4
|
+
const expressions_1 = require("@nova-odm/expressions");
|
|
5
|
+
const base_dao_1 = require("../../base-dao");
|
|
6
|
+
const platter_ranking_model_1 = require("./platter-ranking-model");
|
|
7
|
+
class PlatterRankingDao extends base_dao_1.GenericDAO {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
/**
|
|
11
|
+
* Query `occasionAndPlatterTypeIndex` for the given keys; returns only ACTIVE rows.
|
|
12
|
+
* @param occasionType - The occasion type to filter by.
|
|
13
|
+
* @param platterType - The platter type to filter by.
|
|
14
|
+
* @returns The list of platter rankings.
|
|
15
|
+
*/
|
|
16
|
+
this.getAllPlatterRankings = async (occasionType, platterType) => {
|
|
17
|
+
const platterRankings = [];
|
|
18
|
+
for await (const platterRanking of base_dao_1.mapper.query(platter_ranking_model_1.PlatterRankingModel, { occasionType, platterType }, {
|
|
19
|
+
indexName: "occasionAndPlatterTypeIndex",
|
|
20
|
+
filter: {
|
|
21
|
+
subject: "status",
|
|
22
|
+
...(0, expressions_1.equals)("ACTIVE"),
|
|
23
|
+
},
|
|
24
|
+
})) {
|
|
25
|
+
platterRankings.push(platterRanking);
|
|
26
|
+
}
|
|
27
|
+
return platterRankings;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.platterRankingDao = new PlatterRankingDao();
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdHRlci1yYW5raW5nLWRhby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jdXN0b21lci11c2VyL3BsYXR0ZXItcmFua2luZy9wbGF0dGVyLXJhbmtpbmctZGFvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHVEQUErQztBQUMvQyw2Q0FBb0Q7QUFDcEQsbUVBQThEO0FBRTlELE1BQU0saUJBQWtCLFNBQVEscUJBQStCO0lBQS9EOztRQUVJOzs7OztXQUtHO1FBQ0gsMEJBQXFCLEdBQUcsS0FBSyxFQUN6QixZQUFvQixFQUNwQixXQUFtQixFQUNXLEVBQUU7WUFDaEMsTUFBTSxlQUFlLEdBQTBCLEVBQUUsQ0FBQztZQUNsRCxJQUFJLEtBQUssRUFBRSxNQUFNLGNBQWMsSUFBSSxpQkFBTSxDQUFDLEtBQUssQ0FDM0MsMkNBQW1CLEVBQ25CLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBRSxFQUM3QjtnQkFDSSxTQUFTLEVBQUUsNkJBQTZCO2dCQUN4QyxNQUFNLEVBQUU7b0JBQ0osT0FBTyxFQUFFLFFBQVE7b0JBQ2pCLEdBQUcsSUFBQSxvQkFBTSxFQUFD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ZXJUeXBlOiBzdHJpbmcsXG4gICAgKTogUHJvbWlzZTxQbGF0dGVyUmFua2luZ01vZGVsW10+ID0+IHtcbiAgICAgICAgY29uc3QgcGxhdHRlclJhbmtpbmdzOiBQbGF0dGVyUmFua2luZ01vZGVsW10gPSBbXTtcbiAgICAgICAgZm9yIGF3YWl0IChjb25zdCBwbGF0dGVyUmFua2luZyBvZiBtYXBwZXIucXVlcnkoXG4gICAgICAgICAgICBQbGF0dGVyUmFua2luZ01vZGVsLFxuICAgICAgICAgICAgeyBvY2Nhc2lvblR5cGUsIHBsYXR0ZXJUeXBlIH0sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgaW5kZXhOYW1lOiBcIm9jY2FzaW9uQW5kUGxhdHRlclR5cGVJbmRleFwiLFxuICAgICAgICAgICAgICAgIGZpbHRlcjoge1xuICAgICAgICAgICAgICAgICAgICBzdWJqZWN0OiBcInN0YXR1c1wiLFxuICAgICAgICAgICAgICAgICAgICAuLi5lcXVhbHMoXCJBQ1RJVkVcIiksXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICkpIHtcbiAgICAgICAgICAgIHBsYXR0ZXJSYW5raW5ncy5wdXNoKHBsYXR0ZXJSYW5raW5nKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gcGxhdHRlclJhbmtpbmdzO1xuICAgIH1cblxufVxuXG5leHBvcnQgY29uc3QgcGxhdHRlclJhbmtpbmdEYW8gPSBuZXcgUGxhdHRlclJhbmtpbmdEYW8oKTsiXX0=
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from "../../base-model";
|
|
2
|
+
/** One row in `rankedPlatters` (matches stored JSON shape). */
|
|
3
|
+
export declare class RankedPlatterEntry {
|
|
4
|
+
rank: number;
|
|
5
|
+
platterName: string;
|
|
6
|
+
platterId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class PlatterRankingModel extends BaseModel {
|
|
9
|
+
rankId: string;
|
|
10
|
+
occasionName: string;
|
|
11
|
+
occasionType: string;
|
|
12
|
+
minPax: number;
|
|
13
|
+
maxPax: number;
|
|
14
|
+
budgetTier: string;
|
|
15
|
+
minBudget: number;
|
|
16
|
+
maxBudget: number;
|
|
17
|
+
platterType: string;
|
|
18
|
+
platterSubType: string;
|
|
19
|
+
rankedPlatters: RankedPlatterEntry[];
|
|
20
|
+
status: string;
|
|
21
|
+
version: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PlatterRankingModel = exports.RankedPlatterEntry = void 0;
|
|
13
|
+
const annotations_1 = require("@nova-odm/annotations");
|
|
14
|
+
const base_model_1 = require("../../base-model");
|
|
15
|
+
/** One row in `rankedPlatters` (matches stored JSON shape). */
|
|
16
|
+
class RankedPlatterEntry {
|
|
17
|
+
}
|
|
18
|
+
exports.RankedPlatterEntry = RankedPlatterEntry;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, annotations_1.attribute)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], RankedPlatterEntry.prototype, "rank", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, annotations_1.attribute)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], RankedPlatterEntry.prototype, "platterName", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, annotations_1.attribute)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], RankedPlatterEntry.prototype, "platterId", void 0);
|
|
31
|
+
let PlatterRankingModel = class PlatterRankingModel extends base_model_1.BaseModel {
|
|
32
|
+
};
|
|
33
|
+
exports.PlatterRankingModel = PlatterRankingModel;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, annotations_1.autoGeneratedHashKey)({ type: "String" }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], PlatterRankingModel.prototype, "rankId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, annotations_1.attribute)({ type: "String" }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], PlatterRankingModel.prototype, "occasionName", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, annotations_1.attribute)({ indexKeyConfigurations: { occasionAndPlatterTypeIndex: "HASH" }, type: "String" }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], PlatterRankingModel.prototype, "occasionType", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, annotations_1.attribute)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], PlatterRankingModel.prototype, "minPax", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, annotations_1.attribute)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], PlatterRankingModel.prototype, "maxPax", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, annotations_1.attribute)({ type: "String" }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], PlatterRankingModel.prototype, "budgetTier", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, annotations_1.attribute)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], PlatterRankingModel.prototype, "minBudget", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, annotations_1.attribute)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], PlatterRankingModel.prototype, "maxBudget", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, annotations_1.attribute)({
|
|
68
|
+
indexKeyConfigurations: { platterTypeIndex: "HASH", occasionAndPlatterTypeIndex: "RANGE" },
|
|
69
|
+
type: "String",
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], PlatterRankingModel.prototype, "platterType", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, annotations_1.attribute)({ type: "String" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], PlatterRankingModel.prototype, "platterSubType", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, annotations_1.attribute)(),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], PlatterRankingModel.prototype, "rankedPlatters", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, annotations_1.attribute)({ indexKeyConfigurations: { "statusIndex": "HASH" }, type: 'String' }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], PlatterRankingModel.prototype, "status", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, annotations_1.attribute)(),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], PlatterRankingModel.prototype, "version", void 0);
|
|
89
|
+
exports.PlatterRankingModel = PlatterRankingModel = __decorate([
|
|
90
|
+
(0, annotations_1.table)("PlatterRankingTable")
|
|
91
|
+
], PlatterRankingModel);
|
|
92
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdHRlci1yYW5raW5nLW1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2N1c3RvbWVyLXVzZ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ZTogc3RyaW5nO1xuXG4gICAgQGF0dHJpYnV0ZSh7IHR5cGU6IFwiU3RyaW5nXCIgfSlcbiAgICBwbGF0dGVyU3ViVHlwZTogc3RyaW5nO1xuXG4gICAgQGF0dHJpYnV0ZSgpXG4gICAgcmFua2VkUGxhdHRlcnM6IFJhbmtlZFBsYXR0ZXJFbnRyeVtdO1xuXG4gICAgQGF0dHJpYnV0ZSh7IGluZGV4S2V5Q29uZmlndXJhdGlvbnM6IHsgXCJzdGF0dXNJbmRleFwiOiBcIkhBU0hcIiB9LCB0eXBlOiAnU3RyaW5nJyB9KVxuICAgIHN0YXR1czogc3RyaW5nO1xuXG4gICAgQGF0dHJpYnV0ZSgpXG4gICAgdmVyc2lvbjogbnVtYmVyO1xufVxuIl19
|
package/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Environment Configuration
|
|
2
|
+
export { envManager, EnvironmentManager } from './dist/config/environment-config';
|
|
3
|
+
export { DatabaseFactory } from './dist/config/database-factory';
|
|
4
|
+
export { TableNameManager, TABLE_NAMES, BASE_TABLE_NAMES } from './dist/config/table-names';
|
|
5
|
+
|
|
6
|
+
// Core Database Components
|
|
7
|
+
export { InternalUserModel } from './dist/internal-user/internal-user-model';
|
|
8
|
+
export { internalUserDao } from './dist/internal-user/internal-user-dao';
|
|
9
|
+
export { GenericDAO } from './dist/base-dao';
|
|
10
|
+
export { BaseModel } from './dist/base-model';
|
|
11
|
+
export { AddOnsModel } from './dist/customer-user/add-ons/add-ons-model';
|
|
12
|
+
export { addonsDao } from './dist/customer-user/add-ons/addons-dao';
|
|
13
|
+
export { BankDetailsModel } from './dist/customer-user/bank-details/bank-details-model';
|
|
14
|
+
export { bankDetailsDao } from './dist/customer-user/bank-details/bank-details-dao';
|
|
15
|
+
export { CartModel } from './dist/customer-user/cart/cart-model';
|
|
16
|
+
export { cartDAO } from './dist/customer-user/cart/cart-dao';
|
|
17
|
+
export { CartCategoriesModel } from './dist/customer-user/cart/cart-categories-model';
|
|
18
|
+
export { cartCategoriesDAO } from './dist/customer-user/cart/cart-categories-dao';
|
|
19
|
+
export { CategoryModel } from './dist/customer-user/category/category-model';
|
|
20
|
+
export { categoryTypesDAO } from './dist/customer-user/category/category-dao';
|
|
21
|
+
export { ContentModel } from './dist/customer-user/content/content-model';
|
|
22
|
+
export { contentDeliveryDAO } from './dist/customer-user/content/content-delivery-dao';
|
|
23
|
+
export { CouponsModel } from './dist/customer-user/coupons/coupons-model';
|
|
24
|
+
export { couponDAO } from './dist/customer-user/coupons/coupons-dao';
|
|
25
|
+
export { DefaultPlatterModel } from './dist/customer-user/default-platter/default-platters-model';
|
|
26
|
+
export { defaultPlatterDAO } from './dist/customer-user/default-platter/default-platter-dao';
|
|
27
|
+
export { DefaultPlatterCategoriesModel } from './dist/customer-user/default-platter/default-platters-category-model';
|
|
28
|
+
export { defaultPlattersCategoriesDAO } from './dist/customer-user/default-platter/default-platter-categories-dao';
|
|
29
|
+
export { DefaultPlattersItems } from './dist/customer-user/default-platter/default_platters_items';
|
|
30
|
+
export { defaultPlatterItemsDAO } from './dist/customer-user/default-platter/default-platter-items-dao';
|
|
31
|
+
export { EventExecutivesModel } from './dist/customer-user/event-executives/event-executive-model';
|
|
32
|
+
export { eventExecutivesDAO } from './dist/customer-user/event-executives/event-executive-dao';
|
|
33
|
+
export { ItemsModel } from './dist/customer-user/items/items-model';
|
|
34
|
+
export { menuItemsDAO } from './dist/customer-user/items/items-dao';
|
|
35
|
+
export { LeadModel } from './dist/customer-user/lead/lead-model';
|
|
36
|
+
export { leadDao } from './dist/customer-user/lead/lead-dao';
|
|
37
|
+
export { OccasionModel } from './dist/customer-user/occastion/occasion-model';
|
|
38
|
+
export { occasionDao } from './dist/customer-user/occastion/occasion-dao';
|
|
39
|
+
export { AddressModel } from './dist/customer-user/order-module/address/address-model';
|
|
40
|
+
export { addressDao } from './dist/customer-user/order-module/address/address-dao';
|
|
41
|
+
export { OrderModel } from './dist/customer-user/order-module/order/order-model';
|
|
42
|
+
export { orderDao } from './dist/customer-user/order-module/order/order-dao';
|
|
43
|
+
export { AddressOrderModel } from './dist/customer-user/order-module/order-address/address-order-model';
|
|
44
|
+
export { addressOrderDao } from './dist/customer-user/order-module/order-address/address-order-dao';
|
|
45
|
+
export { OrderReviewModel } from './dist/customer-user/order-module/order-review/order-review-model';
|
|
46
|
+
export { orderReviewDAO } from './dist/customer-user/order-module/order-review/order-review-dao';
|
|
47
|
+
export { PaymentModel } from './dist/customer-user/order-module/payment/payment-model';
|
|
48
|
+
export { paymentDao } from './dist/customer-user/order-module/payment/paymet-dao';
|
|
49
|
+
export { PlateModel } from './dist/customer-user/order-module/plate-order/plate-order-model';
|
|
50
|
+
export { plateOrderDAO } from './dist/customer-user/order-module/plate-order/plateOrderDao';
|
|
51
|
+
export { TrackingModel } from './dist/customer-user/order-module/tracking/tracking-model';
|
|
52
|
+
export { trackingDao } from './dist/customer-user/order-module/tracking/tracking-dao';
|
|
53
|
+
export { ReferalContentModel } from './dist/customer-user/referal-content/referal-content-model';
|
|
54
|
+
export { referalContentDao } from './dist/customer-user/referal-content/referal-content-dao';
|
|
55
|
+
export { UserModel } from './dist/customer-user/user/user-model';
|
|
56
|
+
export { userDAO } from './dist/customer-user/user/user-dao';
|
|
57
|
+
export { WalletModel } from './dist/customer-user/wallet/wallet-model';
|
|
58
|
+
export { walletDao } from './dist/customer-user/wallet/wallet-dao';
|
|
59
|
+
export { WalletTransactionModel } from './dist/customer-user/wallet-transaction/wallet-transaction-model';
|
|
60
|
+
export { walletTransactionDao } from './dist/customer-user/wallet-transaction/wallet-transaction-dao';
|
|
61
|
+
export { WithdrawnModel } from './dist/customer-user/withdrawn/withdrawn-model';
|
|
62
|
+
export { withdrawnDao } from './dist/customer-user/withdrawn/withdrawn-dao';
|