@aenode/prop 0.0.23 → 0.0.39

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 (193) hide show
  1. package/README.md +12 -16
  2. package/assets/favicon.svg +1 -1
  3. package/bin/prop.mjs +3 -0
  4. package/dist/index.d.ts +2 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +2 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/lib/common/base-dto-class.d.ts +4 -0
  9. package/dist/lib/common/base-dto-class.d.ts.map +1 -0
  10. package/dist/lib/common/base-dto-class.js +7 -0
  11. package/dist/lib/common/base-dto-class.js.map +1 -0
  12. package/dist/lib/common/global-validation-pipe.d.ts +3 -0
  13. package/dist/lib/common/global-validation-pipe.d.ts.map +1 -0
  14. package/dist/lib/common/global-validation-pipe.js +34 -0
  15. package/dist/lib/common/global-validation-pipe.js.map +1 -0
  16. package/dist/lib/common/message.dto.d.ts +4 -0
  17. package/dist/lib/common/message.dto.d.ts.map +1 -0
  18. package/dist/lib/common/message.dto.js +11 -0
  19. package/dist/lib/common/message.dto.js.map +1 -0
  20. package/dist/lib/common/validation-error-response.dto.d.ts +10 -0
  21. package/dist/lib/common/validation-error-response.dto.d.ts.map +1 -0
  22. package/dist/lib/common/validation-error-response.dto.js +44 -0
  23. package/dist/lib/common/validation-error-response.dto.js.map +1 -0
  24. package/dist/lib/default-value-transformer.d.ts +9 -0
  25. package/dist/lib/default-value-transformer.d.ts.map +1 -0
  26. package/dist/lib/default-value-transformer.js +22 -0
  27. package/dist/lib/default-value-transformer.js.map +1 -0
  28. package/dist/lib/index.d.ts +27 -0
  29. package/dist/lib/index.d.ts.map +1 -0
  30. package/dist/lib/index.js +29 -0
  31. package/dist/lib/index.js.map +1 -0
  32. package/dist/lib/json-transformer.d.ts +2 -0
  33. package/dist/lib/json-transformer.d.ts.map +1 -0
  34. package/dist/lib/json-transformer.js +14 -0
  35. package/dist/lib/json-transformer.js.map +1 -0
  36. package/dist/lib/prop-boolean.d.ts +17 -0
  37. package/dist/lib/prop-boolean.d.ts.map +1 -0
  38. package/dist/lib/prop-boolean.js +39 -0
  39. package/dist/lib/prop-boolean.js.map +1 -0
  40. package/dist/lib/prop-common.d.ts +15 -0
  41. package/dist/lib/prop-common.d.ts.map +1 -0
  42. package/dist/lib/prop-common.js +43 -0
  43. package/dist/lib/prop-common.js.map +1 -0
  44. package/dist/lib/prop-date.d.ts +17 -0
  45. package/dist/lib/prop-date.d.ts.map +1 -0
  46. package/dist/lib/prop-date.js +41 -0
  47. package/dist/lib/prop-date.js.map +1 -0
  48. package/dist/lib/prop-enum.d.ts +17 -0
  49. package/dist/lib/prop-enum.d.ts.map +1 -0
  50. package/dist/lib/prop-enum.js +36 -0
  51. package/dist/lib/prop-enum.js.map +1 -0
  52. package/dist/lib/prop-number.d.ts +19 -0
  53. package/dist/lib/prop-number.d.ts.map +1 -0
  54. package/dist/lib/prop-number.js +62 -0
  55. package/dist/lib/prop-number.js.map +1 -0
  56. package/dist/lib/prop-object-validation.d.ts +9 -0
  57. package/dist/lib/prop-object-validation.d.ts.map +1 -0
  58. package/dist/lib/prop-object-validation.js +24 -0
  59. package/dist/lib/prop-object-validation.js.map +1 -0
  60. package/dist/lib/prop-object.d.ts +18 -0
  61. package/dist/lib/prop-object.d.ts.map +1 -0
  62. package/dist/lib/prop-object.js +53 -0
  63. package/dist/lib/prop-object.js.map +1 -0
  64. package/dist/lib/prop-options.d.ts +67 -0
  65. package/dist/lib/prop-options.d.ts.map +1 -0
  66. package/dist/lib/prop-options.js +3 -0
  67. package/dist/lib/prop-options.js.map +1 -0
  68. package/dist/lib/prop-string.d.ts +19 -0
  69. package/dist/lib/prop-string.d.ts.map +1 -0
  70. package/dist/lib/prop-string.js +112 -0
  71. package/dist/lib/prop-string.js.map +1 -0
  72. package/dist/lib/prop-validation.d.ts +10 -0
  73. package/dist/lib/prop-validation.d.ts.map +1 -0
  74. package/dist/lib/prop-validation.js +75 -0
  75. package/dist/lib/prop-validation.js.map +1 -0
  76. package/dist/lib/prop.d.ts +3 -0
  77. package/dist/lib/prop.d.ts.map +1 -0
  78. package/dist/lib/prop.js +13 -0
  79. package/dist/lib/prop.js.map +1 -0
  80. package/dist/lib/test-helpers.d.ts +3 -0
  81. package/dist/lib/test-helpers.d.ts.map +1 -0
  82. package/dist/lib/test-helpers.js +19 -0
  83. package/dist/lib/test-helpers.js.map +1 -0
  84. package/dist/lib/to-api-property-optionts.d.ts +4 -0
  85. package/dist/lib/to-api-property-optionts.d.ts.map +1 -0
  86. package/dist/lib/to-api-property-optionts.js +29 -0
  87. package/dist/lib/to-api-property-optionts.js.map +1 -0
  88. package/dist/lib/validators/index.d.ts +8 -0
  89. package/dist/lib/validators/index.d.ts.map +1 -0
  90. package/dist/lib/validators/index.js +10 -0
  91. package/dist/lib/validators/index.js.map +1 -0
  92. package/dist/lib/validators/is-relative-path.d.ts +3 -0
  93. package/dist/lib/validators/is-relative-path.d.ts.map +1 -0
  94. package/dist/lib/validators/is-relative-path.js +26 -0
  95. package/dist/lib/validators/is-relative-path.js.map +1 -0
  96. package/dist/lib/validators/less-than.d.ts +3 -0
  97. package/dist/lib/validators/less-than.d.ts.map +1 -0
  98. package/dist/lib/validators/less-than.js +26 -0
  99. package/dist/lib/validators/less-than.js.map +1 -0
  100. package/dist/lib/validators/max-properties.d.ts +3 -0
  101. package/dist/lib/validators/max-properties.d.ts.map +1 -0
  102. package/dist/lib/validators/max-properties.js +29 -0
  103. package/dist/lib/validators/max-properties.js.map +1 -0
  104. package/dist/lib/validators/min-properties.d.ts +3 -0
  105. package/dist/lib/validators/min-properties.d.ts.map +1 -0
  106. package/dist/lib/validators/min-properties.js +29 -0
  107. package/dist/lib/validators/min-properties.js.map +1 -0
  108. package/dist/lib/validators/more-than.d.ts +3 -0
  109. package/dist/lib/validators/more-than.d.ts.map +1 -0
  110. package/dist/lib/validators/more-than.js +26 -0
  111. package/dist/lib/validators/more-than.js.map +1 -0
  112. package/dist/lib/validators/not-with.d.ts +2 -0
  113. package/dist/lib/validators/not-with.d.ts.map +1 -0
  114. package/dist/lib/validators/not-with.js +25 -0
  115. package/dist/lib/validators/not-with.js.map +1 -0
  116. package/dist/lib/validators/not-without.d.ts +2 -0
  117. package/dist/lib/validators/not-without.d.ts.map +1 -0
  118. package/dist/lib/validators/not-without.js +25 -0
  119. package/dist/lib/validators/not-without.js.map +1 -0
  120. package/dist/main.d.ts +3 -0
  121. package/dist/main.d.ts.map +1 -0
  122. package/dist/main.js +4 -0
  123. package/dist/main.js.map +1 -0
  124. package/package.json +24 -41
  125. package/dist/graphql/filter-dtos.d.ts +0 -69
  126. package/dist/graphql/filter-dtos.d.ts.map +0 -1
  127. package/dist/graphql/filter-dtos.js +0 -370
  128. package/dist/graphql/filter-dtos.js.map +0 -1
  129. package/dist/graphql/index.d.ts +0 -10
  130. package/dist/graphql/index.d.ts.map +0 -1
  131. package/dist/graphql/index.js +0 -12
  132. package/dist/graphql/index.js.map +0 -1
  133. package/dist/graphql/input-type.d.ts +0 -2
  134. package/dist/graphql/input-type.d.ts.map +0 -1
  135. package/dist/graphql/input-type.js +0 -8
  136. package/dist/graphql/input-type.js.map +0 -1
  137. package/dist/graphql/object-type.d.ts +0 -2
  138. package/dist/graphql/object-type.d.ts.map +0 -1
  139. package/dist/graphql/object-type.js +0 -8
  140. package/dist/graphql/object-type.js.map +0 -1
  141. package/dist/graphql/prop-order-count.d.ts +0 -2
  142. package/dist/graphql/prop-order-count.d.ts.map +0 -1
  143. package/dist/graphql/prop-order-count.js +0 -11
  144. package/dist/graphql/prop-order-count.js.map +0 -1
  145. package/dist/graphql/prop-order.d.ts +0 -2
  146. package/dist/graphql/prop-order.d.ts.map +0 -1
  147. package/dist/graphql/prop-order.js +0 -11
  148. package/dist/graphql/prop-order.js.map +0 -1
  149. package/dist/graphql/prop.d.ts +0 -9
  150. package/dist/graphql/prop.d.ts.map +0 -1
  151. package/dist/graphql/prop.js +0 -38
  152. package/dist/graphql/prop.js.map +0 -1
  153. package/dist/graphql/register-enums.d.ts +0 -2
  154. package/dist/graphql/register-enums.d.ts.map +0 -1
  155. package/dist/graphql/register-enums.js +0 -11
  156. package/dist/graphql/register-enums.js.map +0 -1
  157. package/dist/graphql/sort-count.dto.d.ts +0 -5
  158. package/dist/graphql/sort-count.dto.d.ts.map +0 -1
  159. package/dist/graphql/sort-count.dto.js +0 -22
  160. package/dist/graphql/sort-count.dto.js.map +0 -1
  161. package/dist/peers.d.ts +0 -2
  162. package/dist/peers.d.ts.map +0 -1
  163. package/dist/peers.js +0 -3
  164. package/dist/peers.js.map +0 -1
  165. package/dist/restapi/filter-dtos.d.ts +0 -44
  166. package/dist/restapi/filter-dtos.d.ts.map +0 -1
  167. package/dist/restapi/filter-dtos.js +0 -202
  168. package/dist/restapi/filter-dtos.js.map +0 -1
  169. package/dist/restapi/index.d.ts +0 -7
  170. package/dist/restapi/index.d.ts.map +0 -1
  171. package/dist/restapi/index.js +0 -9
  172. package/dist/restapi/index.js.map +0 -1
  173. package/dist/restapi/prop-order-count.d.ts +0 -2
  174. package/dist/restapi/prop-order-count.d.ts.map +0 -1
  175. package/dist/restapi/prop-order-count.js +0 -11
  176. package/dist/restapi/prop-order-count.js.map +0 -1
  177. package/dist/restapi/prop-order.d.ts +0 -2
  178. package/dist/restapi/prop-order.d.ts.map +0 -1
  179. package/dist/restapi/prop-order.js +0 -11
  180. package/dist/restapi/prop-order.js.map +0 -1
  181. package/dist/restapi/prop.d.ts +0 -3
  182. package/dist/restapi/prop.d.ts.map +0 -1
  183. package/dist/restapi/prop.js +0 -11
  184. package/dist/restapi/prop.js.map +0 -1
  185. package/dist/restapi/sort-count.dto.d.ts +0 -5
  186. package/dist/restapi/sort-count.dto.d.ts.map +0 -1
  187. package/dist/restapi/sort-count.dto.js +0 -18
  188. package/dist/restapi/sort-count.dto.js.map +0 -1
  189. package/dist/restapi/to-api-property-options.d.ts +0 -4
  190. package/dist/restapi/to-api-property-options.d.ts.map +0 -1
  191. package/dist/restapi/to-api-property-options.js +0 -37
  192. package/dist/restapi/to-api-property-options.js.map +0 -1
  193. package/license +0 -70
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/graphql/register-enums.ts"],"sourcesContent":["import { SortOrder } from '@aenode/types';\nimport { registerEnumType } from '@nestjs/graphql';\nimport { QueryMode } from './filter-dtos.js';\n\nregisterEnumType(SortOrder, {\n name: 'SortOrder',\n});\n\nregisterEnumType(QueryMode, {\n name: 'QueryMode',\n});\n"],"names":["SortOrder","registerEnumType","QueryMode","name"],"mappings":"AAAA,SAASA,SAAS,QAAQ,gBAAgB;AAC1C,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,SAAS,QAAQ,mBAAmB;AAE7CD,iBAAiBD,WAAW;IAC1BG,MAAM;AACR;AAEAF,iBAAiBC,WAAW;IAC1BC,MAAM;AACR"}
@@ -1,5 +0,0 @@
1
- import { SortOrder } from '@aenode/types';
2
- export declare class SortCountDto {
3
- _count?: SortOrder;
4
- }
5
- //# sourceMappingURL=sort-count.dto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort-count.dto.d.ts","sourceRoot":"","sources":["../../src/graphql/sort-count.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,qBACa,YAAY;IACU,MAAM,CAAC,EAAE,SAAS,CAAC;CACrD"}
@@ -1,22 +0,0 @@
1
- import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
- import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
3
- import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
4
- import { SortOrder } from '@aenode/types';
5
- import { InputType } from '@nestjs/graphql';
6
- import { Prop } from './prop.js';
7
- export class SortCountDto {
8
- constructor(){
9
- _define_property(this, "_count", void 0);
10
- }
11
- }
12
- _ts_decorate([
13
- Prop({
14
- enum: ()=>SortOrder
15
- }),
16
- _ts_metadata("design:type", typeof SortOrder === "undefined" ? Object : SortOrder)
17
- ], SortCountDto.prototype, "_count", void 0);
18
- SortCountDto = _ts_decorate([
19
- InputType()
20
- ], SortCountDto);
21
-
22
- //# sourceMappingURL=sort-count.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/graphql/sort-count.dto.ts"],"sourcesContent":["import { SortOrder } from '@aenode/types';\nimport { InputType } from '@nestjs/graphql';\nimport { Prop } from './prop.js';\n\n@InputType()\nexport class SortCountDto {\n @Prop({ enum: () => SortOrder }) _count?: SortOrder;\n}\n"],"names":["SortOrder","InputType","Prop","SortCountDto","_count","enum"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,gBAAgB;AAC1C,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,IAAI,QAAQ,YAAY;AAGjC,OAAO,MAAMC;;QACX,uBAAiCC,UAAjC,KAAA;;AACF;;;QADUC,MAAM,IAAML"}
package/dist/peers.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import '@aenode/reflect';
2
- //# sourceMappingURL=peers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"peers.d.ts","sourceRoot":"","sources":["../src/peers.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC"}
package/dist/peers.js DELETED
@@ -1,3 +0,0 @@
1
- import '@aenode/reflect';
2
-
3
- //# sourceMappingURL=peers.js.map
package/dist/peers.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/peers.ts"],"sourcesContent":["import '@aenode/reflect';\n"],"names":[],"mappings":"AAAA,OAAO,kBAAkB"}
@@ -1,44 +0,0 @@
1
- export declare const QueryMode: {
2
- readonly default: "default";
3
- readonly insensitive: "insensitive";
4
- };
5
- export type QueryMode = keyof typeof QueryMode;
6
- export declare class IntFilterDto {
7
- equals?: number;
8
- in?: number[];
9
- notIn?: number[];
10
- lt?: number;
11
- lte?: number;
12
- gt?: number;
13
- gte?: number;
14
- not?: IntFilterDto;
15
- }
16
- export declare class DateFilterDto {
17
- equals?: Date;
18
- in?: Date[];
19
- notIn?: Date[];
20
- lt?: Date;
21
- lte?: Date;
22
- gt?: Date;
23
- gte?: Date;
24
- not?: DateFilterDto;
25
- }
26
- export declare class BooleanFilterDto {
27
- equals?: boolean;
28
- not?: BooleanFilterDto;
29
- }
30
- export declare class StringFilterDto {
31
- equals?: string;
32
- in?: string[];
33
- notIn?: string[];
34
- lt?: string;
35
- lte?: string;
36
- gt?: string;
37
- gte?: string;
38
- contains?: string;
39
- startsWith?: string;
40
- endsWith?: string;
41
- mode?: QueryMode;
42
- not?: StringFilterDto;
43
- }
44
- //# sourceMappingURL=filter-dtos.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter-dtos.d.ts","sourceRoot":"","sources":["../../src/restapi/filter-dtos.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,SAAS,CAAC;AAE/C,qBAAa,YAAY;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IACqB,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACtD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACiB,GAAG,CAAC,EAAE,YAAY,CAAC;CAC1D;AAED,qBAAa,aAAa;IAChB,MAAM,CAAC,EAAE,IAAI,CAAC;IACqB,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;IACZ,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IAClD,EAAE,CAAC,EAAE,IAAI,CAAC;IACV,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,EAAE,CAAC,EAAE,IAAI,CAAC;IACV,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,qBAAa,gBAAgB;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACiB,GAAG,CAAC,EAAE,gBAAgB,CAAC;CAClE;AAED,qBAAa,eAAe;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IACqB,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACtD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IACO,IAAI,CAAC,EAAE,SAAS,CAAC;IACT,GAAG,CAAC,EAAE,eAAe,CAAC;CAChE"}
@@ -1,202 +0,0 @@
1
- import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
- import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
3
- import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
4
- import { Prop } from './prop.js';
5
- export const QueryMode = {
6
- default: 'default',
7
- insensitive: 'insensitive'
8
- };
9
- export class IntFilterDto {
10
- constructor(){
11
- _define_property(this, "equals", void 0);
12
- _define_property(this, "in", void 0);
13
- _define_property(this, "notIn", void 0);
14
- _define_property(this, "lt", void 0);
15
- _define_property(this, "lte", void 0);
16
- _define_property(this, "gt", void 0);
17
- _define_property(this, "gte", void 0);
18
- _define_property(this, "not", void 0);
19
- }
20
- }
21
- _ts_decorate([
22
- Prop(),
23
- _ts_metadata("design:type", Number)
24
- ], IntFilterDto.prototype, "equals", void 0);
25
- _ts_decorate([
26
- Prop({
27
- type: ()=>Number,
28
- isArray: true
29
- }),
30
- _ts_metadata("design:type", Array)
31
- ], IntFilterDto.prototype, "in", void 0);
32
- _ts_decorate([
33
- Prop({
34
- type: ()=>Number,
35
- isArray: true
36
- }),
37
- _ts_metadata("design:type", Array)
38
- ], IntFilterDto.prototype, "notIn", void 0);
39
- _ts_decorate([
40
- Prop(),
41
- _ts_metadata("design:type", Number)
42
- ], IntFilterDto.prototype, "lt", void 0);
43
- _ts_decorate([
44
- Prop(),
45
- _ts_metadata("design:type", Number)
46
- ], IntFilterDto.prototype, "lte", void 0);
47
- _ts_decorate([
48
- Prop(),
49
- _ts_metadata("design:type", Number)
50
- ], IntFilterDto.prototype, "gt", void 0);
51
- _ts_decorate([
52
- Prop(),
53
- _ts_metadata("design:type", Number)
54
- ], IntFilterDto.prototype, "gte", void 0);
55
- _ts_decorate([
56
- Prop({
57
- object: ()=>IntFilterDto
58
- }),
59
- _ts_metadata("design:type", Object)
60
- ], IntFilterDto.prototype, "not", void 0);
61
- export class DateFilterDto {
62
- constructor(){
63
- _define_property(this, "equals", void 0);
64
- _define_property(this, "in", void 0);
65
- _define_property(this, "notIn", void 0);
66
- _define_property(this, "lt", void 0);
67
- _define_property(this, "lte", void 0);
68
- _define_property(this, "gt", void 0);
69
- _define_property(this, "gte", void 0);
70
- _define_property(this, "not", void 0);
71
- }
72
- }
73
- _ts_decorate([
74
- Prop(),
75
- _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
76
- ], DateFilterDto.prototype, "equals", void 0);
77
- _ts_decorate([
78
- Prop({
79
- type: ()=>Date,
80
- isArray: true
81
- }),
82
- _ts_metadata("design:type", Array)
83
- ], DateFilterDto.prototype, "in", void 0);
84
- _ts_decorate([
85
- Prop({
86
- type: ()=>Date,
87
- isArray: true
88
- }),
89
- _ts_metadata("design:type", Array)
90
- ], DateFilterDto.prototype, "notIn", void 0);
91
- _ts_decorate([
92
- Prop(),
93
- _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
94
- ], DateFilterDto.prototype, "lt", void 0);
95
- _ts_decorate([
96
- Prop(),
97
- _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
98
- ], DateFilterDto.prototype, "lte", void 0);
99
- _ts_decorate([
100
- Prop(),
101
- _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
102
- ], DateFilterDto.prototype, "gt", void 0);
103
- _ts_decorate([
104
- Prop(),
105
- _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
106
- ], DateFilterDto.prototype, "gte", void 0);
107
- _ts_decorate([
108
- Prop(),
109
- _ts_metadata("design:type", Object)
110
- ], DateFilterDto.prototype, "not", void 0);
111
- export class BooleanFilterDto {
112
- constructor(){
113
- _define_property(this, "equals", void 0);
114
- _define_property(this, "not", void 0);
115
- }
116
- }
117
- _ts_decorate([
118
- Prop(),
119
- _ts_metadata("design:type", Boolean)
120
- ], BooleanFilterDto.prototype, "equals", void 0);
121
- _ts_decorate([
122
- Prop({
123
- object: ()=>BooleanFilterDto
124
- }),
125
- _ts_metadata("design:type", Object)
126
- ], BooleanFilterDto.prototype, "not", void 0);
127
- export class StringFilterDto {
128
- constructor(){
129
- _define_property(this, "equals", void 0);
130
- _define_property(this, "in", void 0);
131
- _define_property(this, "notIn", void 0);
132
- _define_property(this, "lt", void 0);
133
- _define_property(this, "lte", void 0);
134
- _define_property(this, "gt", void 0);
135
- _define_property(this, "gte", void 0);
136
- _define_property(this, "contains", void 0);
137
- _define_property(this, "startsWith", void 0);
138
- _define_property(this, "endsWith", void 0);
139
- _define_property(this, "mode", void 0);
140
- _define_property(this, "not", void 0);
141
- }
142
- }
143
- _ts_decorate([
144
- Prop(),
145
- _ts_metadata("design:type", String)
146
- ], StringFilterDto.prototype, "equals", void 0);
147
- _ts_decorate([
148
- Prop({
149
- type: ()=>String,
150
- isArray: true
151
- }),
152
- _ts_metadata("design:type", Array)
153
- ], StringFilterDto.prototype, "in", void 0);
154
- _ts_decorate([
155
- Prop({
156
- type: ()=>String,
157
- isArray: true
158
- }),
159
- _ts_metadata("design:type", Array)
160
- ], StringFilterDto.prototype, "notIn", void 0);
161
- _ts_decorate([
162
- Prop(),
163
- _ts_metadata("design:type", String)
164
- ], StringFilterDto.prototype, "lt", void 0);
165
- _ts_decorate([
166
- Prop(),
167
- _ts_metadata("design:type", String)
168
- ], StringFilterDto.prototype, "lte", void 0);
169
- _ts_decorate([
170
- Prop(),
171
- _ts_metadata("design:type", String)
172
- ], StringFilterDto.prototype, "gt", void 0);
173
- _ts_decorate([
174
- Prop(),
175
- _ts_metadata("design:type", String)
176
- ], StringFilterDto.prototype, "gte", void 0);
177
- _ts_decorate([
178
- Prop(),
179
- _ts_metadata("design:type", String)
180
- ], StringFilterDto.prototype, "contains", void 0);
181
- _ts_decorate([
182
- Prop(),
183
- _ts_metadata("design:type", String)
184
- ], StringFilterDto.prototype, "startsWith", void 0);
185
- _ts_decorate([
186
- Prop(),
187
- _ts_metadata("design:type", String)
188
- ], StringFilterDto.prototype, "endsWith", void 0);
189
- _ts_decorate([
190
- Prop({
191
- enum: ()=>QueryMode
192
- }),
193
- _ts_metadata("design:type", typeof QueryMode === "undefined" ? Object : QueryMode)
194
- ], StringFilterDto.prototype, "mode", void 0);
195
- _ts_decorate([
196
- Prop({
197
- object: ()=>StringFilterDto
198
- }),
199
- _ts_metadata("design:type", Object)
200
- ], StringFilterDto.prototype, "not", void 0);
201
-
202
- //# sourceMappingURL=filter-dtos.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/restapi/filter-dtos.ts"],"sourcesContent":["import { Prop } from './prop.js';\n\nexport const QueryMode = {\n default: 'default',\n insensitive: 'insensitive',\n} as const;\n\nexport type QueryMode = keyof typeof QueryMode;\n\nexport class IntFilterDto {\n @Prop() equals?: number;\n @Prop({ type: () => Number, isArray: true }) in?: number[];\n @Prop({ type: () => Number, isArray: true }) notIn?: number[];\n @Prop() lt?: number;\n @Prop() lte?: number;\n @Prop() gt?: number;\n @Prop() gte?: number;\n @Prop({ object: () => IntFilterDto }) not?: IntFilterDto;\n}\n\nexport class DateFilterDto {\n @Prop() equals?: Date;\n @Prop({ type: () => Date, isArray: true }) in?: Date[];\n @Prop({ type: () => Date, isArray: true }) notIn?: Date[];\n @Prop() lt?: Date;\n @Prop() lte?: Date;\n @Prop() gt?: Date;\n @Prop() gte?: Date;\n @Prop() not?: DateFilterDto;\n}\n\nexport class BooleanFilterDto {\n @Prop() equals?: boolean;\n @Prop({ object: () => BooleanFilterDto }) not?: BooleanFilterDto;\n}\n\nexport class StringFilterDto {\n @Prop() equals?: string;\n @Prop({ type: () => String, isArray: true }) in?: string[];\n @Prop({ type: () => String, isArray: true }) notIn?: string[];\n @Prop() lt?: string;\n @Prop() lte?: string;\n @Prop() gt?: string;\n @Prop() gte?: string;\n @Prop() contains?: string;\n @Prop() startsWith?: string;\n @Prop() endsWith?: string;\n @Prop({ enum: () => QueryMode }) mode?: QueryMode;\n @Prop({ object: () => StringFilterDto }) not?: StringFilterDto;\n}\n"],"names":["Prop","QueryMode","default","insensitive","IntFilterDto","equals","in","notIn","lt","lte","gt","gte","not","type","Number","isArray","object","DateFilterDto","Date","BooleanFilterDto","StringFilterDto","contains","startsWith","endsWith","mode","String","enum"],"mappings":";;;AAAA,SAASA,IAAI,QAAQ,YAAY;AAEjC,OAAO,MAAMC,YAAY;IACvBC,SAAS;IACTC,aAAa;AACf,EAAW;AAIX,OAAO,MAAMC;;QACX,uBAAQC,UAAR,KAAA;QACA,uBAA6CC,MAA7C,KAAA;QACA,uBAA6CC,SAA7C,KAAA;QACA,uBAAQC,MAAR,KAAA;QACA,uBAAQC,OAAR,KAAA;QACA,uBAAQC,MAAR,KAAA;QACA,uBAAQC,OAAR,KAAA;QACA,uBAAsCC,OAAtC,KAAA;;AACF;;;;;;;QAPUC,MAAM,IAAMC;QAAQC,SAAS;;;;;;QAC7BF,MAAM,IAAMC;QAAQC,SAAS;;;;;;;;;;;;;;;;;;;;;;QAK7BC,QAAQ,IAAMZ;;;;AAGxB,OAAO,MAAMa;;QACX,uBAAQZ,UAAR,KAAA;QACA,uBAA2CC,MAA3C,KAAA;QACA,uBAA2CC,SAA3C,KAAA;QACA,uBAAQC,MAAR,KAAA;QACA,uBAAQC,OAAR,KAAA;QACA,uBAAQC,MAAR,KAAA;QACA,uBAAQC,OAAR,KAAA;QACA,uBAAQC,OAAR,KAAA;;AACF;;;;;;;QAPUC,MAAM,IAAMK;QAAMH,SAAS;;;;;;QAC3BF,MAAM,IAAMK;QAAMH,SAAS;;;;;;;;;;;;;;;;;;;;;;;;AAQrC,OAAO,MAAMI;;QACX,uBAAQd,UAAR,KAAA;QACA,uBAA0CO,OAA1C,KAAA;;AACF;;;;;;;QADUI,QAAQ,IAAMG;;;;AAGxB,OAAO,MAAMC;;QACX,uBAAQf,UAAR,KAAA;QACA,uBAA6CC,MAA7C,KAAA;QACA,uBAA6CC,SAA7C,KAAA;QACA,uBAAQC,MAAR,KAAA;QACA,uBAAQC,OAAR,KAAA;QACA,uBAAQC,MAAR,KAAA;QACA,uBAAQC,OAAR,KAAA;QACA,uBAAQU,YAAR,KAAA;QACA,uBAAQC,cAAR,KAAA;QACA,uBAAQC,YAAR,KAAA;QACA,uBAAiCC,QAAjC,KAAA;QACA,uBAAyCZ,OAAzC,KAAA;;AACF;;;;;;;QAXUC,MAAM,IAAMY;QAAQV,SAAS;;;;;;QAC7BF,MAAM,IAAMY;QAAQV,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAQ7BW,MAAM,IAAMzB;;;;;;QACZe,QAAQ,IAAMI"}
@@ -1,7 +0,0 @@
1
- export * from './filter-dtos.js';
2
- export * from './prop-order-count.js';
3
- export * from './prop-order.js';
4
- export * from './prop.js';
5
- export * from './sort-count.dto.js';
6
- export * from './to-api-property-options.js';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/restapi/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
@@ -1,9 +0,0 @@
1
- // @index(['./**/*.ts', '!./**/*.spec.ts'], f => `export * from '${f.path}.js'`)
2
- export * from './filter-dtos.js';
3
- export * from './prop-order-count.js';
4
- export * from './prop-order.js';
5
- export * from './prop.js';
6
- export * from './sort-count.dto.js';
7
- export * from './to-api-property-options.js';
8
-
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/restapi/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.spec.ts'], f => `export * from '${f.path}.js'`)\nexport * from './filter-dtos.js';\nexport * from './prop-order-count.js';\nexport * from './prop-order.js';\nexport * from './prop.js';\nexport * from './sort-count.dto.js';\nexport * from './to-api-property-options.js';\n"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,cAAc,kBAAkB;AAChC,cAAc,YAAY;AAC1B,cAAc,sBAAsB;AACpC,cAAc,+BAA+B"}
@@ -1,2 +0,0 @@
1
- export declare function PropOrderCount(): PropertyDecorator;
2
- //# sourceMappingURL=prop-order-count.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prop-order-count.d.ts","sourceRoot":"","sources":["../../src/restapi/prop-order-count.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,IAAI,iBAAiB,CAIlD"}
@@ -1,11 +0,0 @@
1
- import { Prop } from './prop.js';
2
- import { SortCountDto } from './sort-count.dto.js';
3
- export function PropOrderCount() {
4
- return (...args)=>{
5
- Prop({
6
- object: ()=>SortCountDto
7
- })(...args);
8
- };
9
- }
10
-
11
- //# sourceMappingURL=prop-order-count.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/restapi/prop-order-count.ts"],"sourcesContent":["import { Prop } from './prop.js';\nimport { SortCountDto } from './sort-count.dto.js';\n\nexport function PropOrderCount(): PropertyDecorator {\n return (...args) => {\n Prop({ object: () => SortCountDto })(...args);\n };\n}\n"],"names":["Prop","SortCountDto","PropOrderCount","args","object"],"mappings":"AAAA,SAASA,IAAI,QAAQ,YAAY;AACjC,SAASC,YAAY,QAAQ,sBAAsB;AAEnD,OAAO,SAASC;IACd,OAAO,CAAC,GAAGC;QACTH,KAAK;YAAEI,QAAQ,IAAMH;QAAa,MAAME;IAC1C;AACF"}
@@ -1,2 +0,0 @@
1
- export declare function PropOrder(): PropertyDecorator;
2
- //# sourceMappingURL=prop-order.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prop-order.d.ts","sourceRoot":"","sources":["../../src/restapi/prop-order.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,IAAI,iBAAiB,CAI7C"}
@@ -1,11 +0,0 @@
1
- import { SortOrder } from '@aenode/types';
2
- import { Prop } from './prop.js';
3
- export function PropOrder() {
4
- return (...args)=>{
5
- Prop({
6
- enum: ()=>SortOrder
7
- })(...args);
8
- };
9
- }
10
-
11
- //# sourceMappingURL=prop-order.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/restapi/prop-order.ts"],"sourcesContent":["import { SortOrder } from '@aenode/types';\nimport { Prop } from './prop.js';\n\nexport function PropOrder(): PropertyDecorator {\n return (...args) => {\n Prop({ enum: () => SortOrder })(...args);\n };\n}\n"],"names":["SortOrder","Prop","PropOrder","args","enum"],"mappings":"AAAA,SAASA,SAAS,QAAQ,gBAAgB;AAC1C,SAASC,IAAI,QAAQ,YAAY;AAEjC,OAAO,SAASC;IACd,OAAO,CAAC,GAAGC;QACTF,KAAK;YAAEG,MAAM,IAAMJ;QAAU,MAAMG;IACrC;AACF"}
@@ -1,3 +0,0 @@
1
- import { type PropValidationOptions } from '@aenode/prop-validation';
2
- export declare function Prop(options?: PropValidationOptions): PropertyDecorator;
3
- //# sourceMappingURL=prop.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prop.d.ts","sourceRoot":"","sources":["../../src/restapi/prop.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,yBAAyB,CAAC;AAIjC,wBAAgB,IAAI,CAAC,OAAO,GAAE,qBAA0B,GAAG,iBAAiB,CAK3E"}
@@ -1,11 +0,0 @@
1
- import { PropValidation } from '@aenode/prop-validation';
2
- import { ApiProperty } from '@nestjs/swagger';
3
- import { toApiPropertyOptions } from './to-api-property-options.js';
4
- export function Prop(options = {}) {
5
- return (...args)=>{
6
- PropValidation(options)(...args);
7
- ApiProperty(toApiPropertyOptions(options))(...args);
8
- };
9
- }
10
-
11
- //# sourceMappingURL=prop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/restapi/prop.ts"],"sourcesContent":["import {\n PropValidation,\n type PropValidationOptions,\n} from '@aenode/prop-validation';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { toApiPropertyOptions } from './to-api-property-options.js';\n\nexport function Prop(options: PropValidationOptions = {}): PropertyDecorator {\n return (...args) => {\n PropValidation(options)(...args);\n ApiProperty(toApiPropertyOptions(options))(...args);\n };\n}\n"],"names":["PropValidation","ApiProperty","toApiPropertyOptions","Prop","options","args"],"mappings":"AAAA,SACEA,cAAc,QAET,0BAA0B;AACjC,SAASC,WAAW,QAAQ,kBAAkB;AAC9C,SAASC,oBAAoB,QAAQ,+BAA+B;AAEpE,OAAO,SAASC,KAAKC,UAAiC,CAAC,CAAC;IACtD,OAAO,CAAC,GAAGC;QACTL,eAAeI,YAAYC;QAC3BJ,YAAYC,qBAAqBE,aAAaC;IAChD;AACF"}
@@ -1,5 +0,0 @@
1
- import { SortOrder } from '@aenode/types';
2
- export declare class SortCountDto {
3
- _count?: SortOrder;
4
- }
5
- //# sourceMappingURL=sort-count.dto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort-count.dto.d.ts","sourceRoot":"","sources":["../../src/restapi/sort-count.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,qBAAa,YAAY;IACU,MAAM,CAAC,EAAE,SAAS,CAAC;CACrD"}
@@ -1,18 +0,0 @@
1
- import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
- import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
3
- import { _ as _ts_metadata } from "@swc/helpers/_/_ts_metadata";
4
- import { SortOrder } from '@aenode/types';
5
- import { Prop } from './prop.js';
6
- export class SortCountDto {
7
- constructor(){
8
- _define_property(this, "_count", void 0);
9
- }
10
- }
11
- _ts_decorate([
12
- Prop({
13
- enum: ()=>SortOrder
14
- }),
15
- _ts_metadata("design:type", typeof SortOrder === "undefined" ? Object : SortOrder)
16
- ], SortCountDto.prototype, "_count", void 0);
17
-
18
- //# sourceMappingURL=sort-count.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/restapi/sort-count.dto.ts"],"sourcesContent":["import { SortOrder } from '@aenode/types';\nimport { Prop } from './prop.js';\n\nexport class SortCountDto {\n @Prop({ enum: () => SortOrder }) _count?: SortOrder;\n}\n"],"names":["SortOrder","Prop","SortCountDto","_count","enum"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,gBAAgB;AAC1C,SAASC,IAAI,QAAQ,YAAY;AAEjC,OAAO,MAAMC;;QACX,uBAAiCC,UAAjC,KAAA;;AACF;;;QADUC,MAAM,IAAMJ"}
@@ -1,4 +0,0 @@
1
- import { type PropValidationOptions } from '@aenode/prop-validation';
2
- import { type ApiPropertyOptions } from '@nestjs/swagger';
3
- export declare function toApiPropertyOptions(options: PropValidationOptions): ApiPropertyOptions;
4
- //# sourceMappingURL=to-api-property-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"to-api-property-options.d.ts","sourceRoot":"","sources":["../../src/restapi/to-api-property-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,qBAAqB,GAC7B,kBAAkB,CAgCpB"}
@@ -1,37 +0,0 @@
1
- import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
- import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
- export function toApiPropertyOptions(options) {
4
- const required = options.isRequired === true;
5
- const common = {
6
- required,
7
- nullable: required === false,
8
- minLength: options.minLength,
9
- maxLength: options.maxLength,
10
- maximum: options.max,
11
- minimum: options.min,
12
- format: options.format,
13
- default: options.defaultValue,
14
- pattern: options.pattern,
15
- maxItems: options.maxItems,
16
- minItems: options.minItems,
17
- description: options.description
18
- };
19
- if (options.type) {
20
- return _object_spread_props(_object_spread({}, common), {
21
- type: options.type
22
- });
23
- } else if (options.enum) {
24
- return _object_spread_props(_object_spread({}, common), {
25
- enum: options.enum
26
- });
27
- } else if (options.object) {
28
- return _object_spread_props(_object_spread({}, common), {
29
- type: options.object
30
- });
31
- } else if (options.isArray) {
32
- throw new Error(`One of type, enum, or object option must be provided for an array properties`);
33
- }
34
- return _object_spread({}, common);
35
- }
36
-
37
- //# sourceMappingURL=to-api-property-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/restapi/to-api-property-options.ts"],"sourcesContent":["import { type PropValidationOptions } from '@aenode/prop-validation';\nimport { type ApiPropertyOptions } from '@nestjs/swagger';\n\nexport function toApiPropertyOptions(\n options: PropValidationOptions,\n): ApiPropertyOptions {\n const required = options.isRequired === true;\n\n const common: ApiPropertyOptions = {\n required,\n\n nullable: required === false,\n minLength: options.minLength,\n maxLength: options.maxLength,\n maximum: options.max,\n minimum: options.min,\n format: options.format,\n default: options.defaultValue,\n pattern: options.pattern,\n maxItems: options.maxItems,\n minItems: options.minItems,\n description: options.description,\n };\n\n if (options.type) {\n return { ...common, type: options.type };\n } else if (options.enum) {\n return { ...common, enum: options.enum };\n } else if (options.object) {\n return { ...common, type: options.object };\n } else if (options.isArray) {\n throw new Error(\n `One of type, enum, or object option must be provided for an array properties`,\n );\n }\n\n return { ...common };\n}\n"],"names":["toApiPropertyOptions","options","required","isRequired","common","nullable","minLength","maxLength","maximum","max","minimum","min","format","default","defaultValue","pattern","maxItems","minItems","description","type","enum","object","isArray","Error"],"mappings":";;AAGA,OAAO,SAASA,qBACdC,OAA8B;IAE9B,MAAMC,WAAWD,QAAQE,UAAU,KAAK;IAExC,MAAMC,SAA6B;QACjCF;QAEAG,UAAUH,aAAa;QACvBI,WAAWL,QAAQK,SAAS;QAC5BC,WAAWN,QAAQM,SAAS;QAC5BC,SAASP,QAAQQ,GAAG;QACpBC,SAAST,QAAQU,GAAG;QACpBC,QAAQX,QAAQW,MAAM;QACtBC,SAASZ,QAAQa,YAAY;QAC7BC,SAASd,QAAQc,OAAO;QACxBC,UAAUf,QAAQe,QAAQ;QAC1BC,UAAUhB,QAAQgB,QAAQ;QAC1BC,aAAajB,QAAQiB,WAAW;IAClC;IAEA,IAAIjB,QAAQkB,IAAI,EAAE;QAChB,OAAO,wCAAKf;YAAQe,MAAMlB,QAAQkB,IAAI;;IACxC,OAAO,IAAIlB,QAAQmB,IAAI,EAAE;QACvB,OAAO,wCAAKhB;YAAQgB,MAAMnB,QAAQmB,IAAI;;IACxC,OAAO,IAAInB,QAAQoB,MAAM,EAAE;QACzB,OAAO,wCAAKjB;YAAQe,MAAMlB,QAAQoB,MAAM;;IAC1C,OAAO,IAAIpB,QAAQqB,OAAO,EAAE;QAC1B,MAAM,IAAIC,MACR,CAAC,4EAA4E,CAAC;IAElF;IAEA,OAAO,mBAAKnB;AACd"}
package/license DELETED
@@ -1,70 +0,0 @@
1
- # AESYS COMMERCIAL SOFTWARE LICENSE AGREEMENT
2
-
3
- **Version 1.0**
4
-
5
- **IMPORTANT — READ CAREFULLY:** This Commercial Software License Agreement ("Agreement") is a legally binding contract between the Licensor ("Licensor", "Author", or "We") and the individual or legal entity purchasing or acquiring a license ("Licensee" or "You") for the software, libraries, modules, source code, and associated documentation collectively known as **AESYS** (the "Software").
6
-
7
- By downloading, installing, copying, accessing, or otherwise using the Software, You agree to be bound by the terms of this Agreement. If You do not agree to the terms of this Agreement, do not download, install, copy, or use the Software.
8
-
9
- ---
10
-
11
- ### 1. GRANT OF LICENSE
12
-
13
- Subject to the terms and conditions of this Agreement and the full payment of any applicable license fees, Licensor grants Licensee a non-exclusive, non-transferable, non-sublicensable, worldwide right to:
14
-
15
- 1. Install, execute, and use the Software libraries and modules to build, test, and deploy software applications, services, or internal platforms ("Derived Products").
16
- 2. Modify, adapt, or extend the source code of the Software solely for incorporation into Licensee's Derived Products.
17
-
18
- ---
19
-
20
- ### 2. RESTRICTIONS AND PROHIBITED USES
21
-
22
- Except as expressly authorized in Section 1, Licensee shall **NOT**:
23
-
24
- 1. **No Open-Source or Free Distribution:** Redistribute, publish, sub-license, rent, lease, convey, or otherwise make the Software—or any portion, modification, or derivative work thereof—available under any open-source, freeware, or copyleft license (including but not limited to MIT, Apache, GPL, AGPL, or BSD).
25
- 2. **No Direct Resale or Competition:** Sell, resell, license, sublicense, redistribute, or host the Software (or modified versions of the Software) as a standalone product, component library, module suite, SDK, SaaS framework, or starter kit that directly competes with the Software.
26
- 3. **No Source Code Exposure:** Expose, distribute, or leak the original or modified source code of the Software to any third party, public repository, or unauthorized entity.
27
- 4. **No Reverse Engineering of Proprietary Assets:** Reverse engineer, decompile, or disassemble any compiled binaries or obfuscated assets provided with the Software, except to the extent permitted by applicable mandatory law.
28
- 5. **No Removal of Notices:** Remove, alter, or obscure any copyright, trademark, or proprietary rights notices contained in or on the Software.
29
-
30
- ---
31
-
32
- ### 3. INTELLECTUAL PROPERTY RIGHTS
33
-
34
- 1. **Ownership:** The Software, including all code, structure, architecture, design, documentation, and intellectual property rights therein, remains the exclusive property of the Licensor.
35
- 2. **No Transfer of Title:** This Agreement is a license for use, not a sale of the Software. No title to or ownership of the Software (or any intellectual property rights therein) is transferred to Licensee.
36
- 3. **Derived Works:** Any modifications, enhancements, or derivative works created by Licensee based on the Software remain subject to the terms of this Agreement and may not be extracted or distributed independently of Licensee’s permitted Derived Products.
37
-
38
- ---
39
-
40
- ### 4. FEES AND AUDIT RIGHTS
41
-
42
- 1. **Payment:** Access to and right to use the Software is conditioned upon full payment of the applicable commercial license fees established by the Licensor.
43
- 2. **Verification:** Licensor reserves the right to request reasonable proof or documentation from Licensee to audit compliance with the terms of this Agreement.
44
-
45
- ---
46
-
47
- ### 5. TERMINATION
48
-
49
- 1. **Termination for Cause:** This Agreement and the license granted hereunder will terminate immediately and automatically without notice from Licensor if Licensee breaches any provision of this Agreement.
50
- 2. **Effect of Termination:** Upon termination, Licensee must immediately cease all use, deployment, and distribution of the Software and permanently delete and destroy all copies of the Software in Licensee's possession or control. Sections 2, 3, 6, 7, and 8 shall survive termination.
51
-
52
- ---
53
-
54
- ### 6. NO WARRANTY (DISCLAIMER)
55
-
56
- THE SOFTWARE IS PROVIDED **"AS IS"**, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT. IN NO EVENT SHALL THE LICENSOR OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
57
-
58
- ---
59
-
60
- ### 7. LIMITATION OF LIABILITY
61
-
62
- TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR ANY LOSS OF PROFITS, REVENUE, DATA, OR USE INCURRED BY LICENSEE OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. LICENSOR’S AGGREGATE LIABILITY UNDER THIS AGREEMENT SHALL NOT EXCEED THE TOTAL LICENSE FEES PAID BY LICENSEE FOR THE SOFTWARE IN THE TWELVE (12) MONTHS PRECEDING THE CLAIM.
63
-
64
- ---
65
-
66
- ### 8. GENERAL PROVISIONS
67
-
68
- 1. **Governing Law:** This Agreement shall be governed by and construed in accordance with applicable laws, without regard to its conflict of law principles.
69
- 2. **Severability:** If any provision of this Agreement is held to be invalid or unenforceable, that provision shall be enforced to the maximum extent permissible, and the remaining provisions shall remain in full force and effect.
70
- 3. **Entire Agreement:** This Agreement constitutes the entire agreement between the parties with respect to the Software and supersedes all prior or contemporaneous understandings regarding such subject matter.