@explorins/pers-shared 2.1.168 → 2.1.170
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/cjs/shared-lib/dto/booking/booking.dto.d.ts +11 -34
- package/dist/cjs/shared-lib/dto/booking/booking.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/booking/booking.dto.js +46 -191
- package/dist/cjs/shared-lib/dto/booking/booking.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/data-source.dto.d.ts +13 -0
- package/dist/cjs/shared-lib/dto/data-source.dto.d.ts.map +1 -0
- package/dist/cjs/shared-lib/dto/data-source.dto.js +59 -0
- package/dist/cjs/shared-lib/dto/data-source.dto.js.map +1 -0
- package/dist/cjs/shared-lib/dto/index.d.ts +1 -0
- package/dist/cjs/shared-lib/dto/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/index.js +2 -0
- package/dist/cjs/shared-lib/dto/index.js.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemption.dto.d.ts +3 -2
- package/dist/cjs/shared-lib/dto/redemption/redemption.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemption.dto.js +13 -3
- package/dist/cjs/shared-lib/dto/redemption/redemption.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemptionType.dto.d.ts +3 -0
- package/dist/cjs/shared-lib/dto/redemption/redemptionType.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemptionType.dto.js +23 -0
- package/dist/cjs/shared-lib/dto/redemption/redemptionType.dto.js.map +1 -1
- package/dist/cjs/shared-lib/types/redemption-include-relation.type.d.ts +3 -3
- package/dist/cjs/shared-lib/types/redemption-include-relation.type.d.ts.map +1 -1
- package/dist/cjs/shared-lib/types/redemption-include-relation.type.js +1 -1
- package/dist/cjs/shared-lib/types/redemption-include-relation.type.js.map +1 -1
- package/dist/esm/shared-lib/dto/booking/booking.dto.d.ts +11 -34
- package/dist/esm/shared-lib/dto/booking/booking.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/booking/booking.dto.js +48 -168
- package/dist/esm/shared-lib/dto/booking/booking.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/data-source.dto.d.ts +13 -0
- package/dist/esm/shared-lib/dto/data-source.dto.d.ts.map +1 -0
- package/dist/esm/shared-lib/dto/data-source.dto.js +47 -0
- package/dist/esm/shared-lib/dto/data-source.dto.js.map +1 -0
- package/dist/esm/shared-lib/dto/index.d.ts +1 -0
- package/dist/esm/shared-lib/dto/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/index.js +2 -0
- package/dist/esm/shared-lib/dto/index.js.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.d.ts +3 -2
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.js +12 -3
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionType.dto.d.ts +3 -0
- package/dist/esm/shared-lib/dto/redemption/redemptionType.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionType.dto.js +22 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionType.dto.js.map +1 -1
- package/dist/esm/shared-lib/types/redemption-include-relation.type.d.ts +3 -3
- package/dist/esm/shared-lib/types/redemption-include-relation.type.d.ts.map +1 -1
- package/dist/esm/shared-lib/types/redemption-include-relation.type.js +1 -1
- package/dist/esm/shared-lib/types/redemption-include-relation.type.js.map +1 -1
- package/package.json +1 -1
|
@@ -34,6 +34,7 @@ export class RedemptionDTO {
|
|
|
34
34
|
context;
|
|
35
35
|
specificRequiredUserFields = [];
|
|
36
36
|
requiredUserFields = [];
|
|
37
|
+
specificBookingRequirement;
|
|
37
38
|
bookingRequirement;
|
|
38
39
|
// =====================================
|
|
39
40
|
// OPTIONAL INCLUDED DATA
|
|
@@ -190,7 +191,15 @@ __decorate([
|
|
|
190
191
|
], RedemptionDTO.prototype, "requiredUserFields", void 0);
|
|
191
192
|
__decorate([
|
|
192
193
|
ApiPropertyOptional({
|
|
193
|
-
description: '
|
|
194
|
+
description: 'Redemption-specific booking requirement override. Set to override type default. Omit or null = use type default.',
|
|
195
|
+
type: String,
|
|
196
|
+
enum: ['active', 'future', 'past', 'active_future', 'any'],
|
|
197
|
+
nullable: true
|
|
198
|
+
})
|
|
199
|
+
], RedemptionDTO.prototype, "specificBookingRequirement", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
ApiPropertyOptional({
|
|
202
|
+
description: 'Effective booking requirement (specific override ?? type default). Use this for validation. Null = no booking required.',
|
|
194
203
|
type: String,
|
|
195
204
|
enum: ['active', 'future', 'past', 'active_future', 'any'],
|
|
196
205
|
nullable: true
|
|
@@ -211,8 +220,8 @@ __decorate([
|
|
|
211
220
|
description: 'Owner business entity (via ?include=ownerBusiness, expands ownerBusinessId)',
|
|
212
221
|
$ref: getSchemaPath(BusinessDTO)
|
|
213
222
|
},
|
|
214
|
-
|
|
215
|
-
description: '
|
|
223
|
+
requiredUserInfo: {
|
|
224
|
+
description: 'Required user info validation status. Only set when requiredUserFields is non-empty + user authenticated. (via ?include=requiredUserInfo)',
|
|
216
225
|
type: 'object',
|
|
217
226
|
properties: {
|
|
218
227
|
fieldDefinitions: { type: 'array', items: { $ref: getSchemaPath(CustomFieldDefinitionDTO) }, description: 'Field definitions with isMissing status' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redemption.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemption.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC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iHAAiH;gBAC9H,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,IAAI,EAAE,EAAE,IAAI,EAAE,aAAa,CAAC,wBAAwB,CAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE;oBAClH,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,qDAAqD,EAAE;iBACnG;aACJ;SACJ;KACJ,CAAC;+CAkBA"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import type { BookingRequirementType } from '../../types/booking.type';
|
|
1
2
|
export declare class RedemptionTypeCreateRequestDTO {
|
|
2
3
|
name: string;
|
|
3
4
|
description?: string;
|
|
4
5
|
imageUrl?: string;
|
|
5
6
|
baseRequiredUserFields?: string[];
|
|
7
|
+
bookingRequirement?: BookingRequirementType | null;
|
|
6
8
|
}
|
|
7
9
|
export declare class RedemptionTypeDTO extends RedemptionTypeCreateRequestDTO {
|
|
8
10
|
id: number;
|
|
9
11
|
baseRequiredUserFields: string[];
|
|
12
|
+
bookingRequirement: BookingRequirementType | null;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=redemptionType.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionType.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionType.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redemptionType.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionType.dto.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGvE,qBAAa,8BAA8B;IAMvC,IAAI,EAAE,MAAM,CAAM;IAOlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAOrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAUlB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAWlC,kBAAkB,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;CACtD;AACD,qBAAa,iBAAkB,SAAQ,8BAA8B;IAIjE,EAAE,EAAE,MAAM,CAAK;IAOf,sBAAsB,EAAE,MAAM,EAAE,CAAM;IAQtC,kBAAkB,EAAE,sBAAsB,GAAG,IAAI,CAAQ;CAC5D"}
|
|
@@ -5,13 +5,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { IsArray, IsNotEmpty, IsString, IsUrl } from 'class-validator';
|
|
8
|
+
import { IsArray, IsNotEmpty, IsString, IsUrl, IsEnum, IsOptional } from 'class-validator';
|
|
9
9
|
import { OptionalStrip } from '../../decorators/index.js';
|
|
10
10
|
export class RedemptionTypeCreateRequestDTO {
|
|
11
11
|
name = '';
|
|
12
12
|
description;
|
|
13
13
|
imageUrl;
|
|
14
14
|
baseRequiredUserFields;
|
|
15
|
+
bookingRequirement;
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
17
18
|
ApiProperty({ type: 'string',
|
|
@@ -44,9 +45,21 @@ __decorate([
|
|
|
44
45
|
IsArray(),
|
|
45
46
|
IsString({ each: true })
|
|
46
47
|
], RedemptionTypeCreateRequestDTO.prototype, "baseRequiredUserFields", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
ApiPropertyOptional({
|
|
50
|
+
description: 'Default booking requirement for all redemptions of this type. Individual redemptions can override via specificBookingRequirement.',
|
|
51
|
+
type: String,
|
|
52
|
+
enum: ['active', 'future', 'past', 'active_future', 'any'],
|
|
53
|
+
nullable: true
|
|
54
|
+
}),
|
|
55
|
+
OptionalStrip(),
|
|
56
|
+
IsEnum(['active', 'future', 'past', 'active_future', 'any']),
|
|
57
|
+
IsOptional()
|
|
58
|
+
], RedemptionTypeCreateRequestDTO.prototype, "bookingRequirement", void 0);
|
|
47
59
|
export class RedemptionTypeDTO extends RedemptionTypeCreateRequestDTO {
|
|
48
60
|
id = 0;
|
|
49
61
|
baseRequiredUserFields = [];
|
|
62
|
+
bookingRequirement = null;
|
|
50
63
|
}
|
|
51
64
|
__decorate([
|
|
52
65
|
ApiProperty({
|
|
@@ -60,4 +73,12 @@ __decorate([
|
|
|
60
73
|
default: []
|
|
61
74
|
})
|
|
62
75
|
], RedemptionTypeDTO.prototype, "baseRequiredUserFields", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
ApiPropertyOptional({
|
|
78
|
+
description: 'Default booking requirement for all redemptions of this type. Individual redemptions can override via specificBookingRequirement.',
|
|
79
|
+
type: String,
|
|
80
|
+
enum: ['active', 'future', 'past', 'active_future', 'any'],
|
|
81
|
+
nullable: true
|
|
82
|
+
})
|
|
83
|
+
], RedemptionTypeDTO.prototype, "bookingRequirement", void 0);
|
|
63
84
|
//# sourceMappingURL=redemptionType.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionType.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionType.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"redemptionType.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionType.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIjD,MAAM,OAAO,8BA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G;IAHC,WAAW,CAAC;QACT,WAAW,EAAE,oBAAoB;KACpC,CAAC;6CACa;AAOf;IALC,WAAW,CAAC;QACT,WAAW,EAAE,kJAAkJ;QAC/J,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,EAAE;KACd,CAAC;iEACoC;AAQtC;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,mIAAmI;QAChJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,CAAC;QAC1D,QAAQ,EAAE,IAAI;KACjB,CAAC;6DACuD"}
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Follows JSON:API sideloading convention
|
|
5
5
|
*
|
|
6
|
-
* Usage: GET /redemptions?include=redeemCount,ownerBusiness,
|
|
6
|
+
* Usage: GET /redemptions?include=redeemCount,ownerBusiness,requiredUserInfo,booking
|
|
7
7
|
*
|
|
8
8
|
* - redeemCount: Include total number of redeems for the redemption
|
|
9
9
|
* - ownerBusiness: Include the owner business entity (when ownerBusinessId is set)
|
|
10
|
-
* -
|
|
10
|
+
* - requiredUserInfo: Include required user info validation with field definitions and isValid flag.
|
|
11
11
|
* When user is authenticated, each definition includes `isMissing: boolean` to indicate
|
|
12
12
|
* if the user lacks that field. `isValid` summarizes if all required fields are satisfied.
|
|
13
13
|
* - booking: Include booking validation status. When user is authenticated and
|
|
14
14
|
* redemption has booking requirement, includes `isValid` flag and matching `data`.
|
|
15
15
|
*/
|
|
16
|
-
export type RedemptionIncludeRelation = 'redeemCount' | 'ownerBusiness' | '
|
|
16
|
+
export type RedemptionIncludeRelation = 'redeemCount' | 'ownerBusiness' | 'requiredUserInfo' | 'booking';
|
|
17
17
|
/**
|
|
18
18
|
* Array of all valid redemption include relations
|
|
19
19
|
* Used for runtime validation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redemption-include-relation.type.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types/redemption-include-relation.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,yBAAyB,GAAG,aAAa,GAAG,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"redemption-include-relation.type.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types/redemption-include-relation.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,yBAAyB,GAAG,aAAa,GAAG,eAAe,GAAG,kBAAkB,GAAG,SAAS,CAAC;AAEzG;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,yBAAyB,EAKjE,CAAC;AAEX;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAE3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redemption-include-relation.type.js","sourceRoot":"","sources":["../../../../src/shared-lib/types/redemption-include-relation.type.ts"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAyC;IAC9E,aAAa;IACb,eAAe;IACf,
|
|
1
|
+
{"version":3,"file":"redemption-include-relation.type.js","sourceRoot":"","sources":["../../../../src/shared-lib/types/redemption-include-relation.type.ts"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAyC;IAC9E,aAAa;IACb,eAAe;IACf,kBAAkB;IAClB,SAAS;CACD,CAAC;AAEX;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACrD,OAAO,0BAA0B,CAAC,QAAQ,CAAC,KAAkC,CAAC,CAAC;AACjF,CAAC"}
|
package/package.json
CHANGED