@shophost/rest-api 2.0.58 → 2.0.59
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/package.json +1 -1
- package/src/bootstrap.js +1 -1
- package/src/bootstrap.js.map +1 -1
- package/src/container.d.ts +3 -1
- package/src/container.js +1 -1
- package/src/container.js.map +1 -1
- package/src/features/customer/customer.handler.d.ts +2 -0
- package/src/features/customer/customer.handler.js +1 -0
- package/src/features/customer/customer.handler.js.map +1 -0
- package/src/features/customer/customer.route.d.ts +712 -0
- package/src/features/customer/customer.route.js +1 -0
- package/src/features/customer/customer.route.js.map +1 -0
- package/src/features/customer/customer.schema.d.ts +576 -0
- package/src/features/customer/customer.schema.js +1 -0
- package/src/features/customer/customer.schema.js.map +1 -0
- package/src/features/customer/customer.service.d.ts +166 -0
- package/src/features/customer/customer.service.js +1 -0
- package/src/features/customer/customer.service.js.map +1 -0
- package/src/features/index.d.ts +1 -0
- package/src/features/index.js +1 -1
- package/src/features/index.js.map +1 -1
- package/src/schemas/index.d.ts +1 -0
- package/src/schemas/index.js +1 -1
- package/src/schemas/index.js.map +1 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { PrismaClientType } from "../../core/lib/prisma";
|
|
2
|
+
import { CustomerListQuery } from "../../schemas";
|
|
3
|
+
declare class CustomerService {
|
|
4
|
+
private readonly prisma;
|
|
5
|
+
constructor(prisma: PrismaClientType);
|
|
6
|
+
private getCustomerActivityFilter;
|
|
7
|
+
private getCustomerSearchFilter;
|
|
8
|
+
private getCustomerCounts;
|
|
9
|
+
private toCustomerSummary;
|
|
10
|
+
getCustomers(organizationId: string, query: CustomerListQuery): Promise<{
|
|
11
|
+
meta: {
|
|
12
|
+
isFirstPage: boolean;
|
|
13
|
+
isLastPage: boolean;
|
|
14
|
+
currentPage: number;
|
|
15
|
+
previousPage: number | null;
|
|
16
|
+
nextPage: number | null;
|
|
17
|
+
pageCount: number;
|
|
18
|
+
totalCount: number;
|
|
19
|
+
};
|
|
20
|
+
list: {
|
|
21
|
+
id: string;
|
|
22
|
+
email: string;
|
|
23
|
+
firstname: string;
|
|
24
|
+
lastname: string;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
orderCount: number;
|
|
27
|
+
reservationCount: number;
|
|
28
|
+
image?: string | null | undefined;
|
|
29
|
+
name?: string | null | undefined;
|
|
30
|
+
}[];
|
|
31
|
+
}>;
|
|
32
|
+
getCustomer(organizationId: string, userId: string): Promise<{
|
|
33
|
+
customer: {
|
|
34
|
+
id: string;
|
|
35
|
+
email: string;
|
|
36
|
+
firstname: string;
|
|
37
|
+
lastname: string;
|
|
38
|
+
createdAt: Date;
|
|
39
|
+
orderCount: number;
|
|
40
|
+
reservationCount: number;
|
|
41
|
+
image?: string | null | undefined;
|
|
42
|
+
name?: string | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
orders: {
|
|
45
|
+
status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
|
|
46
|
+
id: string;
|
|
47
|
+
referenceId: string;
|
|
48
|
+
token: string;
|
|
49
|
+
expiresAt: Date;
|
|
50
|
+
items: {
|
|
51
|
+
translations: {
|
|
52
|
+
locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
|
|
53
|
+
title: string;
|
|
54
|
+
subtitle: string;
|
|
55
|
+
}[];
|
|
56
|
+
rawData: {
|
|
57
|
+
productId: string;
|
|
58
|
+
modifierGroups: {
|
|
59
|
+
id: string;
|
|
60
|
+
modifiers: {
|
|
61
|
+
id: string;
|
|
62
|
+
quantity: number;
|
|
63
|
+
}[];
|
|
64
|
+
}[];
|
|
65
|
+
quantity?: number | undefined;
|
|
66
|
+
};
|
|
67
|
+
unitPrice: number;
|
|
68
|
+
totalPrice: number;
|
|
69
|
+
quantity: number;
|
|
70
|
+
productSnapshotId: string;
|
|
71
|
+
image?: {
|
|
72
|
+
id: string;
|
|
73
|
+
url: string;
|
|
74
|
+
mimeType: string;
|
|
75
|
+
size: number;
|
|
76
|
+
filename: string;
|
|
77
|
+
} | null | undefined;
|
|
78
|
+
}[];
|
|
79
|
+
shippingMethod: {
|
|
80
|
+
id: string;
|
|
81
|
+
title: string;
|
|
82
|
+
providerName: string;
|
|
83
|
+
shippingZones: {
|
|
84
|
+
title: string;
|
|
85
|
+
distanceUpto: number;
|
|
86
|
+
price: number;
|
|
87
|
+
minimumOrderAmount: number | null;
|
|
88
|
+
eta: string;
|
|
89
|
+
id?: string | undefined;
|
|
90
|
+
}[];
|
|
91
|
+
createdAt: Date;
|
|
92
|
+
updatedAt: Date;
|
|
93
|
+
providerLogo?: {
|
|
94
|
+
id: string;
|
|
95
|
+
url: string;
|
|
96
|
+
mimeType: string;
|
|
97
|
+
size: number;
|
|
98
|
+
filename: string;
|
|
99
|
+
} | null | undefined;
|
|
100
|
+
requireDateOfDelivery?: boolean | undefined;
|
|
101
|
+
eligibleShippingZone?: {
|
|
102
|
+
title: string;
|
|
103
|
+
distanceUpto: number;
|
|
104
|
+
price: number;
|
|
105
|
+
minimumOrderAmount: number | null;
|
|
106
|
+
eta: string;
|
|
107
|
+
id?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
} | null;
|
|
110
|
+
createdAt: Date;
|
|
111
|
+
fulfilmentMethod: "delivery" | "pickup";
|
|
112
|
+
currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
|
|
113
|
+
payment: {
|
|
114
|
+
id: string;
|
|
115
|
+
method: "card" | "blik" | "paypal" | "cash_on_delivery";
|
|
116
|
+
provider: "stripe" | "revolut" | "payu" | "not_applicable";
|
|
117
|
+
status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
|
|
118
|
+
shipping: number;
|
|
119
|
+
subtotal: number;
|
|
120
|
+
total: number;
|
|
121
|
+
discount: number;
|
|
122
|
+
currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
|
|
123
|
+
};
|
|
124
|
+
acceptedAt?: Date | null | undefined;
|
|
125
|
+
dispatchedAt?: Date | null | undefined;
|
|
126
|
+
readyForDispatchAt?: Date | null | undefined;
|
|
127
|
+
completedAt?: Date | null | undefined;
|
|
128
|
+
cancelledAt?: Date | null | undefined;
|
|
129
|
+
inventoryDeductedAt?: Date | null | undefined;
|
|
130
|
+
inventoryConflictAt?: Date | null | undefined;
|
|
131
|
+
inventoryConflictItems?: {
|
|
132
|
+
productId: string;
|
|
133
|
+
title: string;
|
|
134
|
+
requestedQuantity: number;
|
|
135
|
+
availableQuantity: number;
|
|
136
|
+
}[] | null | undefined;
|
|
137
|
+
shippingAddress?: {
|
|
138
|
+
id: string;
|
|
139
|
+
addressLineOne: string;
|
|
140
|
+
city: string;
|
|
141
|
+
country: string;
|
|
142
|
+
placeId: string;
|
|
143
|
+
firstname?: string | null | undefined;
|
|
144
|
+
lastname?: string | null | undefined;
|
|
145
|
+
phone?: string | null | undefined;
|
|
146
|
+
doorNumber?: string | null | undefined;
|
|
147
|
+
addressLineTwo?: string | null | undefined;
|
|
148
|
+
zipCode?: string | undefined;
|
|
149
|
+
deliveryInstructions?: string | null | undefined;
|
|
150
|
+
} | null | undefined;
|
|
151
|
+
}[];
|
|
152
|
+
reservations: {
|
|
153
|
+
id: string;
|
|
154
|
+
firstname: string;
|
|
155
|
+
lastname: string;
|
|
156
|
+
guests: number;
|
|
157
|
+
phone: string;
|
|
158
|
+
date: Date;
|
|
159
|
+
referenceId: string;
|
|
160
|
+
acceptedAt?: Date | null | undefined;
|
|
161
|
+
cancelledAt?: Date | null | undefined;
|
|
162
|
+
createdAt?: Date | null | undefined;
|
|
163
|
+
}[];
|
|
164
|
+
}>;
|
|
165
|
+
}
|
|
166
|
+
export { CustomerService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as o}from"tslib";import{z as n}from"@hono/zod-openapi";import{HttpException as C}from"../../core/exceptions/http-exception";import{AdminCustomerDetailSchema as y,AdminCustomerSchema as c,OrderSchema as f,PaginationMetaSchema as g,ReservationSchema as A}from"../../schemas";const S={items:{include:{translations:!0,image:!0}},payment:!0,shippingAddress:!0,shippingMethod:{include:{shippingZones:!0}}};class w{constructor(e){this.prisma=e}getCustomerActivityFilter(e){return{OR:[{orders:{some:{organizationId:e,deletedAt:null}}},{reservations:{some:{organizationId:e}}}]}}getCustomerSearchFilter(e){return{OR:[{firstname:{contains:e,mode:"insensitive"}},{lastname:{contains:e,mode:"insensitive"}},{name:{contains:e,mode:"insensitive"}},{email:{contains:e,mode:"insensitive"}}]}}getCustomerCounts(e,t){return o(this,void 0,void 0,function*(){const[r,s]=yield this.prisma.$transaction([this.prisma.order.count({where:{organizationId:e,userId:t,deletedAt:null}}),this.prisma.reservation.count({where:{organizationId:e,userId:t}})]);return{orderCount:r,reservationCount:s}})}toCustomerSummary(e,t){return c.parse(Object.assign(Object.assign({},e),t))}getCustomers(e,t){return o(this,void 0,void 0,function*(){var r;const{page:s=1,limit:m=10}=t,i=(r=t.search)===null||r===void 0?void 0:r.trim(),a=this.getCustomerActivityFilter(e),d=i?{AND:[a,this.getCustomerSearchFilter(i)]}:a,[l,h]=yield this.prisma.user.paginate({where:d,orderBy:{createdAt:"desc"}}).withPages({page:s,limit:m}),p=yield Promise.all(l.map(u=>o(this,void 0,void 0,function*(){const v=yield this.getCustomerCounts(e,u.id);return this.toCustomerSummary(u,v)})));return n.object({meta:g,list:n.array(c)}).parse({meta:h,list:p})})}getCustomer(e,t){return o(this,void 0,void 0,function*(){const r=yield this.prisma.user.findFirst({where:{AND:[{id:t},this.getCustomerActivityFilter(e)]}});if(!r)throw new C(404,"Customer not found");const[s,m,i]=yield Promise.all([this.prisma.order.findMany({where:{organizationId:e,userId:t,deletedAt:null},include:S,orderBy:{createdAt:"desc"}}),this.prisma.reservation.findMany({where:{organizationId:e,userId:t},orderBy:{createdAt:"desc"}}),this.getCustomerCounts(e,t)]);return y.parse({customer:this.toCustomerSummary(r,i),orders:n.array(f).parse(s),reservations:n.array(A).parse(m)})})}}export{w as CustomerService};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.service.js","sourceRoot":"","sources":["../../../../../../packages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EAAE,mBAAmB;oBAC5B,OAAO,EAAE;wBACP,SAAS,EAAE,MAAM;qBAClB;iBACF,CAAC;gBACF,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC;oBAC/B,KAAK,EAAE;wBACL,cAAc;wBACd,MAAM;qBACP;oBACD,OAAO,EAAE;wBACP,SAAS,EAAE,MAAM;qBAClB;iBACF,CAAC;gBACF,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,MAAM,CAAC;aAC/C,CAAC,CAAC;YAEH,OAAO,yBAAyB,CAAC,KAAK,CAAC;gBACrC,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC;gBACjD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;gBAC1C,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;aAC7D,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/src/features/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { registerAnalyticsHandlers } from "./analytics/analytics.handler";
|
|
2
2
|
export { registerAccessHandlers } from "./access/access.handler";
|
|
3
3
|
export { registerCartHandlers } from "./cart/cart.handler";
|
|
4
|
+
export { registerCustomerHandlers } from "./customer/customer.handler";
|
|
4
5
|
export { registerFileHandlers } from "./file/file.handler";
|
|
5
6
|
export { registerHealthHandlers } from "./health/health.handler";
|
|
6
7
|
export { registerIntegrationHandlers } from "./integration/integration.handler";
|
package/src/features/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{registerAnalyticsHandlers}from"./analytics/analytics.handler";export{registerAccessHandlers}from"./access/access.handler";export{registerCartHandlers}from"./cart/cart.handler";export{registerFileHandlers}from"./file/file.handler";export{registerHealthHandlers}from"./health/health.handler";export{registerIntegrationHandlers}from"./integration/integration.handler";export{registerLocationHandlers}from"./location/location.handler";export{registerManufacturerHandlers}from"./manufacturer/manufacturer.handler";export{registerOrderHandlers}from"./order/order.handler";export{registerOrganizationHandlers}from"./organization/organization.handler";export{registerPaymentHandlers}from"./payment/payment.handler";export{registerProductCategoryHandlers}from"./product-category/product-category.handler";export{registerProductHandlers}from"./product/product.handler";export{registerReservationHandlers}from"./reservation/reservation.handler";export{registerShippingHandlers}from"./shipping/shipping.handler";export{registerShippingMethodHandlers}from"./shipping-method/shipping-method.handler";export{registerWebhookHandlers}from"./webhook/webhook.handler";
|
|
1
|
+
export{registerAnalyticsHandlers}from"./analytics/analytics.handler";export{registerAccessHandlers}from"./access/access.handler";export{registerCartHandlers}from"./cart/cart.handler";export{registerCustomerHandlers}from"./customer/customer.handler";export{registerFileHandlers}from"./file/file.handler";export{registerHealthHandlers}from"./health/health.handler";export{registerIntegrationHandlers}from"./integration/integration.handler";export{registerLocationHandlers}from"./location/location.handler";export{registerManufacturerHandlers}from"./manufacturer/manufacturer.handler";export{registerOrderHandlers}from"./order/order.handler";export{registerOrganizationHandlers}from"./organization/organization.handler";export{registerPaymentHandlers}from"./payment/payment.handler";export{registerProductCategoryHandlers}from"./product-category/product-category.handler";export{registerProductHandlers}from"./product/product.handler";export{registerReservationHandlers}from"./reservation/reservation.handler";export{registerShippingHandlers}from"./shipping/shipping.handler";export{registerShippingMethodHandlers}from"./shipping-method/shipping-method.handler";export{registerWebhookHandlers}from"./webhook/webhook.handler";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/rest-api/src/features/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAA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ACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/src/schemas/index.d.ts
CHANGED
package/src/schemas/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"../features/analytics/analytics.schema";export*from"../features/access/access.schema";export*from"../features/cart/cart.schema";export*from"./error.schema";export*from"../core/auth/headers.schema";export*from"../features/integration/integration.schema";export*from"../features/product/product.schema";export*from"../core/auth/user.schema";export*from"./pagination.schema";export*from"../features/order/order.schema";export*from"../features/organization/organization.schema";export*from"../features/shipping-method/shipping-method.schema";export*from"../features/product-category/product-category.schema";export*from"../features/shipping-method/shipping-zone.schema";export*from"../features/product/product-modifier.schema";export*from"../features/organization/organization-configuration.schema";export*from"./number.schema";export*from"../features/manufacturer/manufacturer.schema";export*from"./locales.schema";export*from"../features/organization/legal-entity.schema";export*from"../features/order/fulfilment.schema";export*from"../features/file/file.schema";export*from"../features/order/recipient.schema";export*from"./currency.schema";export*from"../core/auth/auth.schema";export*from"./address.schema";export*from"./params.schema";export*from"../features/location/location.schema";export*from"../features/payment/payment.schema";export*from"../features/reservation/reservation.schema";
|
|
1
|
+
export*from"../features/analytics/analytics.schema";export*from"../features/access/access.schema";export*from"../features/cart/cart.schema";export*from"./error.schema";export*from"../core/auth/headers.schema";export*from"../features/integration/integration.schema";export*from"../features/product/product.schema";export*from"../core/auth/user.schema";export*from"./pagination.schema";export*from"../features/order/order.schema";export*from"../features/organization/organization.schema";export*from"../features/shipping-method/shipping-method.schema";export*from"../features/product-category/product-category.schema";export*from"../features/shipping-method/shipping-zone.schema";export*from"../features/product/product-modifier.schema";export*from"../features/organization/organization-configuration.schema";export*from"./number.schema";export*from"../features/manufacturer/manufacturer.schema";export*from"./locales.schema";export*from"../features/organization/legal-entity.schema";export*from"../features/order/fulfilment.schema";export*from"../features/file/file.schema";export*from"../features/order/recipient.schema";export*from"./currency.schema";export*from"../core/auth/auth.schema";export*from"./address.schema";export*from"./params.schema";export*from"../features/location/location.schema";export*from"../features/payment/payment.schema";export*from"../features/reservation/reservation.schema";export*from"../features/customer/customer.schema";
|
package/src/schemas/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/rest-api/src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oDAAoD,CAAC;AACnE,cAAc,sDAAsD,CAAC;AACrE,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4DAA4D,CAAC;AAC3E,cAAc,iBAAiB,CAAC;AAChC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,kBAAkB,CAAC;AACjC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAA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