@ooneex/cli 1.20.2 → 1.20.3

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/index.js CHANGED
@@ -13149,8 +13149,163 @@ export class ColorSeed implements ISeed {
13149
13149
  }
13150
13150
  `;
13151
13151
 
13152
- // src/templates/resources/color/seeds/data.yml
13153
- var data_default = "./data-kn5x3wm1.yml";
13152
+ // src/templates/resources/color/seeds/color-seed.yml
13153
+ var color_seed_default = `- id: e15acdcdc02bd8d3947a
13154
+ name: Blue
13155
+ hex: "#3B82F6"
13156
+ description: A calm and trustworthy color often used for links, buttons, and primary actions
13157
+ lang: en
13158
+
13159
+ - id: 88ee351a85c50c7626c1
13160
+ name: Green
13161
+ hex: "#10B981"
13162
+ description: A natural and balanced color symbolizing success, growth, and positive feedback
13163
+ lang: en
13164
+
13165
+ - id: 6e11eb832388d1708d5f
13166
+ name: Purple
13167
+ hex: "#8B5CF6"
13168
+ description: A rich and creative color associated with luxury, wisdom, and imagination
13169
+ lang: en
13170
+
13171
+ - id: f167815a82d39c33d715
13172
+ name: Yellow
13173
+ hex: "#F59E0B"
13174
+ description: A warm and energetic color used for warnings, highlights, and attention-grabbing elements
13175
+ lang: en
13176
+
13177
+ - id: 0ae99755c73152fc2abe
13178
+ name: Pink
13179
+ hex: "#EC4899"
13180
+ description: A vibrant and playful color conveying warmth, compassion, and modern femininity
13181
+ lang: en
13182
+
13183
+ - id: e3cecfb85b9c0329f776
13184
+ name: Orange
13185
+ hex: "#F97316"
13186
+ description: A bold and enthusiastic color representing energy, creativity, and call-to-action elements
13187
+ lang: en
13188
+
13189
+ - id: 72fd24da73a7d1839698
13190
+ name: Gray
13191
+ hex: "#6B7280"
13192
+ description: A neutral and versatile color ideal for text, borders, and subtle UI backgrounds
13193
+ lang: en
13194
+
13195
+ - id: 173c665d2be12acc7805
13196
+ name: Red
13197
+ hex: "#EF4444"
13198
+ description: A powerful and urgent color used for errors, alerts, and destructive actions
13199
+ lang: en
13200
+
13201
+ - id: c1645c6ea00d26fa9a47
13202
+ name: Teal
13203
+ hex: "#14B8A6"
13204
+ description: A refreshing blend of blue and green evoking clarity, balance, and sophistication
13205
+ lang: en
13206
+
13207
+ - id: f21381a1ced278046ced
13208
+ name: Indigo
13209
+ hex: "#6366F1"
13210
+ description: A deep and intense color conveying depth, integrity, and focused concentration
13211
+ lang: en
13212
+
13213
+ - id: acdb18d725bb58056f60
13214
+ name: Lime
13215
+ hex: "#84CC16"
13216
+ description: A bright and lively color suggesting freshness, vitality, and new beginnings
13217
+ lang: en
13218
+
13219
+ - id: da5bb28477632a888202
13220
+ name: Cyan
13221
+ hex: "#06B6D4"
13222
+ description: A cool and electric color associated with technology, clarity, and open skies
13223
+ lang: en
13224
+
13225
+ - id: 21415e74464d66515337
13226
+ name: Violet
13227
+ hex: "#A855F7"
13228
+ description: A soft and mystical color blending the calm of blue with the energy of red
13229
+ lang: en
13230
+
13231
+ - id: 0839135f093e9257d939
13232
+ name: Rose
13233
+ hex: "#F43F5E"
13234
+ description: A warm and elegant color combining the intensity of red with the softness of pink
13235
+ lang: en
13236
+
13237
+ - id: a369b8c402119aaf2eee
13238
+ name: Stone
13239
+ hex: "#78716C"
13240
+ description: A warm neutral color reminiscent of earth and rock, perfect for grounded designs
13241
+ lang: en
13242
+
13243
+ - id: c6defb941e2ed0b508aa
13244
+ name: Sky
13245
+ hex: "#0EA5E9"
13246
+ description: A light and airy blue inspired by clear skies, evoking openness and freedom
13247
+ lang: en
13248
+
13249
+ - id: 723e22ae073ebe865384
13250
+ name: Emerald
13251
+ hex: "#22C55E"
13252
+ description: A deep and vivid green symbolizing prosperity, harmony, and natural elegance
13253
+ lang: en
13254
+
13255
+ - id: ba0555897c3746ab099b
13256
+ name: Amber
13257
+ hex: "#FACC15"
13258
+ description: A golden and radiant color representing caution, warmth, and precious value
13259
+ lang: en
13260
+
13261
+ - id: 97070e8e92248d1efe3b
13262
+ name: Fuchsia
13263
+ hex: "#E879F9"
13264
+ description: A striking and bold color full of confidence, fun, and creative expression
13265
+ lang: en
13266
+
13267
+ - id: 6344dbdeed2135072813
13268
+ name: Mint
13269
+ hex: "#2DD4BF"
13270
+ description: A cool and soothing color evoking freshness, cleanliness, and gentle relaxation
13271
+ lang: en
13272
+
13273
+ - id: dd98d5498210372a94a0
13274
+ name: Tangerine
13275
+ hex: "#FB923C"
13276
+ description: A cheerful and appetizing color radiating warmth, friendliness, and playful energy
13277
+ lang: en
13278
+
13279
+ - id: 392657362fd85fd3cedf
13280
+ name: Periwinkle
13281
+ hex: "#818CF8"
13282
+ description: A gentle and dreamy color blending lavender and blue for a serene, calming effect
13283
+ lang: en
13284
+
13285
+ - id: 7d66240dfe0995936c45
13286
+ name: Coral
13287
+ hex: "#F472B6"
13288
+ description: A lively and tropical color combining pink and orange for a warm, inviting feel
13289
+ lang: en
13290
+
13291
+ - id: 8f48fb6cb384076144a7
13292
+ name: Spring
13293
+ hex: "#4ADE80"
13294
+ description: A bright and optimistic green capturing the renewal and energy of the spring season
13295
+ lang: en
13296
+
13297
+ - id: d111ae5971315612c38a
13298
+ name: Black
13299
+ hex: "#000000"
13300
+ description: The deepest neutral color representing power, elegance, and strong contrast
13301
+ lang: en
13302
+
13303
+ - id: 30e3e175137a6c9b3f3e
13304
+ name: White
13305
+ hex: "#FFFFFF"
13306
+ description: The purest and lightest color symbolizing simplicity, clarity, and clean design
13307
+ lang: en
13308
+ `;
13154
13309
 
13155
13310
  // src/templates/resources/color/services/CreateColorService.txt
13156
13311
  var CreateColorService_default = `import { inject } from "@ooneex/container";
@@ -13438,7 +13593,7 @@ class MakeResourceColorCommand {
13438
13593
  await makeSeedCommand.run({ name: "Color", module });
13439
13594
  const seedsDir = join31(process.cwd(), base, "src", "seeds");
13440
13595
  await Bun.write(join31(seedsDir, "ColorSeed.ts"), ColorSeed_default);
13441
- await Bun.write(join31(seedsDir, "data.yml"), Bun.file(data_default));
13596
+ await Bun.write(join31(seedsDir, "color-seed.yml"), color_seed_default);
13442
13597
  }
13443
13598
  }
13444
13599
  MakeResourceColorCommand = __legacyDecorateClassTS([
@@ -16812,9 +16967,6 @@ export class StatusRepository {
16812
16967
  }
16813
16968
  `;
16814
16969
 
16815
- // src/templates/resources/status/seeds/data.yml
16816
- var data_default2 = "./data-f4c7y8d3.yml";
16817
-
16818
16970
  // src/templates/resources/status/seeds/StatusSeed.txt
16819
16971
  var StatusSeed_default = `import { resolve } from "@ooneex/container";
16820
16972
  import { decorator, type ISeed, type SeedClassType } from "@ooneex/seeds";
@@ -16854,6 +17006,228 @@ export class StatusSeed implements ISeed {
16854
17006
  }
16855
17007
  `;
16856
17008
 
17009
+ // src/templates/resources/status/seeds/status-seed.yml
17010
+ var status_seed_default = `# Draft/Pending
17011
+ - id: 19370a07c4137b8587fb
17012
+ name: draft
17013
+ color: "#6B7280"
17014
+ description: Initial state, not yet submitted or reviewed
17015
+ lang: en
17016
+
17017
+ - id: cc0ed480a5ec281ac239
17018
+ name: pending
17019
+ color: "#F59E0B"
17020
+ description: Awaiting processing or approval
17021
+ lang: en
17022
+
17023
+ - id: cc64e575330db0b3d778
17024
+ name: submitted
17025
+ color: "#3B82F6"
17026
+ description: Formally sent for processing or review
17027
+ lang: en
17028
+
17029
+ # Review
17030
+ - id: 98a5fee7f4b0937099fa
17031
+ name: in review
17032
+ color: "#8B5CF6"
17033
+ description: Currently under review and awaiting feedback
17034
+ lang: en
17035
+
17036
+ - id: c0d4fcbfc06aa71e0aae
17037
+ name: reviewed
17038
+ color: "#6366F1"
17039
+ description: Review has been completed and feedback provided
17040
+ lang: en
17041
+
17042
+ # Processing
17043
+ - id: 59d5e9450c61ab91ffdf
17044
+ name: processing
17045
+ color: "#3B82F6"
17046
+ description: Currently being processed by the system
17047
+ lang: en
17048
+
17049
+ - id: 78ec743ba28ed7da4ed6
17050
+ name: processed
17051
+ color: "#10B981"
17052
+ description: Processing has been completed successfully
17053
+ lang: en
17054
+
17055
+ - id: 2daa6e14d09e2195f26c
17056
+ name: queued
17057
+ color: "#F59E0B"
17058
+ description: Waiting in a queue to be processed
17059
+ lang: en
17060
+
17061
+ - id: de2850c6c84ce376e66b
17062
+ name: ready
17063
+ color: "#14B8A6"
17064
+ description: Prepared and available for the next step
17065
+ lang: en
17066
+
17067
+ - id: 116cd80e4a794da247d6
17068
+ name: scheduled
17069
+ color: "#6366F1"
17070
+ description: Planned for execution at a future date or time
17071
+ lang: en
17072
+
17073
+ # Approval
17074
+ - id: b720bb250ac3ad60bf8b
17075
+ name: approved
17076
+ color: "#10B981"
17077
+ description: Reviewed and approved, ready to proceed
17078
+ lang: en
17079
+
17080
+ - id: d8ef1c6a8b6d32ec4795
17081
+ name: rejected
17082
+ color: "#EF4444"
17083
+ description: Reviewed and declined, requires changes
17084
+ lang: en
17085
+
17086
+ # Completion
17087
+ - id: 236c522dbf4bbd0c985a
17088
+ name: done
17089
+ color: "#22C55E"
17090
+ description: Task or process has been finished
17091
+ lang: en
17092
+
17093
+ - id: 28c2b3f0eee26967c9a9
17094
+ name: completed
17095
+ color: "#22C55E"
17096
+ description: Successfully finished and closed
17097
+ lang: en
17098
+
17099
+ - id: 359b3403e311d8748eb8
17100
+ name: success
17101
+ color: "#10B981"
17102
+ description: Operation completed without errors
17103
+ lang: en
17104
+
17105
+ # Error
17106
+ - id: b0f3eac4afe9833befc2
17107
+ name: failed
17108
+ color: "#EF4444"
17109
+ description: Attempted but did not complete successfully
17110
+ lang: en
17111
+
17112
+ - id: 7ced0369532b3cbb455f
17113
+ name: error
17114
+ color: "#EF4444"
17115
+ description: An unexpected error occurred during execution
17116
+ lang: en
17117
+
17118
+ - id: 892b0e59911c9d378a65
17119
+ name: cancelled
17120
+ color: "#78716C"
17121
+ description: Intentionally stopped before completion
17122
+ lang: en
17123
+
17124
+ - id: 16d2cee346fc4c785940
17125
+ name: timeout
17126
+ color: "#F97316"
17127
+ description: Operation exceeded the allowed time limit
17128
+ lang: en
17129
+
17130
+ # Archive
17131
+ - id: da382ef8170dd50d006c
17132
+ name: archived
17133
+ color: "#6B7280"
17134
+ description: No longer active, preserved for reference
17135
+ lang: en
17136
+
17137
+ - id: b1f4d6d9c4731a833e08
17138
+ name: delete
17139
+ color: "#EF4444"
17140
+ description: Marked for deletion but not yet removed
17141
+ lang: en
17142
+
17143
+ - id: 04f68d6258818e752734
17144
+ name: deleted
17145
+ color: "#78716C"
17146
+ description: Permanently removed from the system
17147
+ lang: en
17148
+
17149
+ # Activity
17150
+ - id: 99241bc22eba298cbcb8
17151
+ name: active
17152
+ color: "#14B8A6"
17153
+ description: Currently enabled and operational
17154
+ lang: en
17155
+
17156
+ - id: 6102430e65c747500e5a
17157
+ name: inactive
17158
+ color: "#78716C"
17159
+ description: Disabled or dormant, not currently in use
17160
+ lang: en
17161
+
17162
+ - id: 053cebd7dbb3ca3fea12
17163
+ name: disabled
17164
+ color: "#78716C"
17165
+ description: Explicitly turned off and non-functional
17166
+ lang: en
17167
+
17168
+ - id: 0562dbaefe60ed20b110
17169
+ name: enabled
17170
+ color: "#10B981"
17171
+ description: Turned on and ready to operate
17172
+ lang: en
17173
+
17174
+ - id: f2743147444d8db5125a
17175
+ name: suspended
17176
+ color: "#F97316"
17177
+ description: Temporarily restricted due to a policy or issue
17178
+ lang: en
17179
+
17180
+ - id: c4fe0a69cb17bca324bf
17181
+ name: paused
17182
+ color: "#F59E0B"
17183
+ description: Temporarily stopped, can be resumed at any time
17184
+ lang: en
17185
+
17186
+ - id: 13a82a3024635d53365a
17187
+ name: on hold
17188
+ color: "#F97316"
17189
+ description: Temporarily paused, waiting for external input
17190
+ lang: en
17191
+
17192
+ # Messages
17193
+ - id: 4aa0ac556311a9e702cb
17194
+ name: sent
17195
+ color: "#3B82F6"
17196
+ description: Message has been dispatched to the recipient
17197
+ lang: en
17198
+
17199
+ - id: 401301bf6e91759afeac
17200
+ name: delivered
17201
+ color: "#10B981"
17202
+ description: Message has been successfully received by the recipient
17203
+ lang: en
17204
+
17205
+ - id: 81a798642f25e918657a
17206
+ name: read
17207
+ color: "#22C55E"
17208
+ description: Message has been opened and viewed by the recipient
17209
+ lang: en
17210
+
17211
+ # Validation
17212
+ - id: 40463a364cf4654a9fbf
17213
+ name: valid
17214
+ color: "#10B981"
17215
+ description: Passes all validation rules and is considered correct
17216
+ lang: en
17217
+
17218
+ - id: 4c57d0556757f319feeb
17219
+ name: invalid
17220
+ color: "#EF4444"
17221
+ description: Does not meet validation requirements
17222
+ lang: en
17223
+
17224
+ - id: 222182aa92e951d17c10
17225
+ name: expired
17226
+ color: "#6B7280"
17227
+ description: Past its validity period and no longer effective
17228
+ lang: en
17229
+ `;
17230
+
16857
17231
  // src/templates/resources/status/services/CreateStatusService.txt
16858
17232
  var CreateStatusService_default = `import { inject } from "@ooneex/container";
16859
17233
  import { decorator } from "@ooneex/service";
@@ -17082,7 +17456,7 @@ class MakeResourceStatusCommand {
17082
17456
  await makeSeedCommand.run({ name: "Status", module });
17083
17457
  const seedsDir = join36(process.cwd(), base, "src", "seeds");
17084
17458
  await Bun.write(join36(seedsDir, "StatusSeed.ts"), StatusSeed_default);
17085
- await Bun.write(join36(seedsDir, "data.yml"), Bun.file(data_default2));
17459
+ await Bun.write(join36(seedsDir, "status-seed.yml"), status_seed_default);
17086
17460
  }
17087
17461
  }
17088
17462
  MakeResourceStatusCommand = __legacyDecorateClassTS([
@@ -19833,7 +20207,13 @@ export class UserRepository {
19833
20207
  }
19834
20208
 
19835
20209
  public async find(
19836
- criteria: FindManyOptions<UserEntity> & { page?: number; limit?: number; order?: "ASC" | "DESC"; orderBy?: string; q?: string },
20210
+ criteria: FindManyOptions<UserEntity> & {
20211
+ page?: number;
20212
+ limit?: number;
20213
+ order?: "ASC" | "DESC";
20214
+ orderBy?: string;
20215
+ q?: string;
20216
+ },
19837
20217
  ): Promise<FilterResultType<UserEntity>> {
19838
20218
  const repository = await this.open();
19839
20219
 
@@ -19855,21 +20235,21 @@ export class UserRepository {
19855
20235
  if (q) {
19856
20236
  findOptions = {
19857
20237
  ...findOptions,
19858
- where: {
19859
- ...rest.where,
19860
- name: ILike(\`%\${q}%\`),
19861
- },
20238
+ where: [
20239
+ { ...rest.where, firstName: ILike(\`%\${q}%\`) },
20240
+ { ...rest.where, lastName: ILike(\`%\${q}%\`) },
20241
+ ] as FindOptionsWhere<UserEntity>[],
19862
20242
  };
19863
20243
  }
19864
20244
 
19865
20245
  const result = await repository.find(findOptions);
19866
20246
 
19867
- let countWhere = rest.where;
20247
+ let countWhere: FindOptionsWhere<UserEntity> | FindOptionsWhere<UserEntity>[] | undefined = rest.where;
19868
20248
  if (q) {
19869
- countWhere = {
19870
- ...rest.where,
19871
- name: ILike(\`%\${q}%\`),
19872
- };
20249
+ countWhere = [
20250
+ { ...rest.where, firstName: ILike(\`%\${q}%\`) },
20251
+ { ...rest.where, lastName: ILike(\`%\${q}%\`) },
20252
+ ] as FindOptionsWhere<UserEntity>[];
19873
20253
  }
19874
20254
 
19875
20255
  const total = await this.count(countWhere);
@@ -19924,9 +20304,7 @@ export class UserRepository {
19924
20304
  return await Promise.all(entities.map((entity) => repository.update(entity.id, entity)));
19925
20305
  }
19926
20306
 
19927
- public async delete(
19928
- criteria: FindOptionsWhere<UserEntity> | FindOptionsWhere<UserEntity>[],
19929
- ): Promise<UpdateResult> {
20307
+ public async delete(criteria: FindOptionsWhere<UserEntity> | FindOptionsWhere<UserEntity>[]): Promise<UpdateResult> {
19930
20308
  const repository = await this.open();
19931
20309
 
19932
20310
  return await repository.softDelete(criteria);
@@ -19956,7 +20334,7 @@ export class UserRepository {
19956
20334
 
19957
20335
  public async updateProfile(
19958
20336
  userId: string,
19959
- profile: { lastName?: string; firstName?: string; avatar?: string; phone?: string },
20337
+ profile: { lastName?: string; firstName?: string; avatar?: string | null; phone?: string },
19960
20338
  ): Promise<UpdateResult> {
19961
20339
  return await this.update({ id: userId, ...profile });
19962
20340
  }
@@ -21239,4 +21617,4 @@ SeedRunCommand = __legacyDecorateClassTS([
21239
21617
  // src/index.ts
21240
21618
  await run();
21241
21619
 
21242
- //# debugId=F644FC22050EAEC964756E2164756E21
21620
+ //# debugId=6FA7C9AF51A6107064756E2164756E21