@timardex/cluemart-server-shared 1.0.37 → 1.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.
@@ -8199,6 +8199,14 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = gql`
8199
8199
  }
8200
8200
  }
8201
8201
  `;
8202
+ var ADMIN_UPDATE_TESTER_MUTATION = gql`
8203
+ mutation adminUpdateTester($input: AdminUpdateTesterInputType!) {
8204
+ adminUpdateTester(input: $input) {
8205
+ _id
8206
+ approved
8207
+ }
8208
+ }
8209
+ `;
8202
8210
  var POSTER_USAGE_FIELDS_FRAGMENT = gql`
8203
8211
  fragment PosterUsageFields on PosterUsageType {
8204
8212
  month
@@ -8548,6 +8556,100 @@ var GET_EVENT_INFO = gql`
8548
8556
  }
8549
8557
  ${EVENT_INFO}
8550
8558
  `;
8559
+ var TESTER_VENDOR_FIELDS_FRAGMENT = gql`
8560
+ fragment TesterVendorFields on TesterVendorType {
8561
+ categories {
8562
+ ...CategoryFields
8563
+ }
8564
+ productsOrServices
8565
+ marketsAttended {
8566
+ name
8567
+ city
8568
+ }
8569
+ sellingFrequency
8570
+ yearlySellingApprox
8571
+ questionary {
8572
+ uploadStallProfileFirstWeek
8573
+ applyToAtLeastOneMarket
8574
+ tryVisitorFeatures
8575
+ completeFeedbackQuestionnaire
8576
+ sendPhotoForSocialMedia
8577
+ appearInVideoIntroduction
8578
+ socialMediaFeatureReason
8579
+ excitementAboutApp
8580
+ usefulnessExpectations
8581
+ testingPeriodConcerns
8582
+ }
8583
+ }
8584
+ ${CATEGORY_FIELDS_FRAGMENT}
8585
+ `;
8586
+ var TESTER_EVENT_FIELDS_FRAGMENT = gql`
8587
+ fragment TesterEventFields on TesterEventType {
8588
+ organizedMarketCount
8589
+ markets {
8590
+ name
8591
+ cityOrVenue
8592
+ frequency
8593
+ averageStallCount
8594
+ }
8595
+ questionary {
8596
+ allowMarketingAppearance
8597
+ completeFinalQuestionnaire
8598
+ dailyCoordinationNeeds
8599
+ interestedInCharityInitiative
8600
+ inviteAtLeastFiveStallholders
8601
+ manageApplicationsAndCommunication
8602
+ organizerExpectations
8603
+ registerMarketsFirstWeek
8604
+ spaceForClueMart
8605
+ }
8606
+ }
8607
+ `;
8608
+ var TESTER_FIELDS_FRAGMENT = gql`
8609
+ fragment TesterFields on TesterType {
8610
+ _id
8611
+ active
8612
+ approved
8613
+ businessName
8614
+ consents {
8615
+ betaTestConsent
8616
+ privacyConsent
8617
+ }
8618
+ createdAt
8619
+ email
8620
+ firstName
8621
+ lastName
8622
+ mobilePhone
8623
+ osType
8624
+ region
8625
+ resourceType
8626
+ updatedAt
8627
+ vendor {
8628
+ ...TesterVendorFields
8629
+ }
8630
+ event {
8631
+ ...TesterEventFields
8632
+ }
8633
+ }
8634
+ ${TESTER_VENDOR_FIELDS_FRAGMENT}
8635
+ ${TESTER_EVENT_FIELDS_FRAGMENT}
8636
+ `;
8637
+ var GET_TESTERS = gql`
8638
+ query getTesters {
8639
+ testers {
8640
+ ...TesterFields
8641
+ }
8642
+ }
8643
+ ${TESTER_FIELDS_FRAGMENT}
8644
+ `;
8645
+ var GET_TESTER = gql`
8646
+ query getTester($_id: ID!) {
8647
+ tester(_id: $_id) {
8648
+ ...TesterFields
8649
+ }
8650
+ }
8651
+ ${TESTER_FIELDS_FRAGMENT}
8652
+ `;
8551
8653
  var VENDOR_LOCATION_FIELDS_FRAGMENT = gql`
8552
8654
  fragment VendorLocationFields on VendorLocationType {
8553
8655
  city
@@ -9324,97 +9426,6 @@ var UPDATE_VENDOR_INFO_MUTATION = gql`
9324
9426
  }
9325
9427
  ${VENDOR_INFO}
9326
9428
  `;
9327
- var TESTER_VENDOR_FIELDS_FRAGMENT = gql`
9328
- fragment TesterVendorFields on TesterVendorType {
9329
- categories {
9330
- ...CategoryFields
9331
- }
9332
- productsOrServices
9333
- marketsAttended {
9334
- name
9335
- city
9336
- }
9337
- sellingFrequency
9338
- yearlySellingApprox
9339
- questionary {
9340
- uploadStallProfileFirstWeek
9341
- applyToAtLeastOneMarket
9342
- tryVisitorFeatures
9343
- completeFeedbackQuestionnaire
9344
- sendPhotoForSocialMedia
9345
- appearInVideoIntroduction
9346
- socialMediaFeatureReason
9347
- excitementAboutApp
9348
- usefulnessExpectations
9349
- testingPeriodConcerns
9350
- }
9351
- }
9352
- ${CATEGORY_FIELDS_FRAGMENT}
9353
- `;
9354
- var TESTER_EVENT_FIELDS_FRAGMENT = gql`
9355
- fragment TesterEventFields on TesterEventType {
9356
- organizedMarketCount
9357
- markets {
9358
- name
9359
- cityOrVenue
9360
- frequency
9361
- averageStallCount
9362
- }
9363
- questionary {
9364
- allowMarketingAppearance
9365
- completeFinalQuestionnaire
9366
- dailyCoordinationNeeds
9367
- interestedInCharityInitiative
9368
- inviteAtLeastFiveStallholders
9369
- manageApplicationsAndCommunication
9370
- organizerExpectations
9371
- registerMarketsFirstWeek
9372
- spaceForClueMart
9373
- }
9374
- }
9375
- `;
9376
- var TESTER_FIELDS_FRAGMENT = gql`
9377
- fragment TesterFields on TesterType {
9378
- _id
9379
- active
9380
- approved
9381
- businessName
9382
- createdAt
9383
- email
9384
- firstName
9385
- lastName
9386
- mobilePhone
9387
- osType
9388
- privacyConsent
9389
- region
9390
- resourceType
9391
- updatedAt
9392
- vendor {
9393
- ...TesterVendorFields
9394
- }
9395
- event {
9396
- ...TesterEventFields
9397
- }
9398
- }
9399
- ${TESTER_VENDOR_FIELDS_FRAGMENT}
9400
- ${TESTER_EVENT_FIELDS_FRAGMENT}
9401
- `;
9402
- var GET_TESTERS = gql`
9403
- query getTesters {
9404
- testers {
9405
- ...TesterFields
9406
- }
9407
- }
9408
- ${TESTER_FIELDS_FRAGMENT}
9409
- `;
9410
- var GET_TESTER = gql`
9411
- query getTester($_id: ID!) {
9412
- tester(_id: $_id) {
9413
- ...TesterFields
9414
- }
9415
- }
9416
- ${TESTER_FIELDS_FRAGMENT}
9417
- `;
9418
9429
  var CREATE_TESTER_MUTATION = gql`
9419
9430
  mutation createTester($input: TesterInputType!) {
9420
9431
  createTester(input: $input) {
@@ -10115,7 +10126,7 @@ var testerVendorSchema = create$3().shape({
10115
10126
  Object.values(VendorSellingFrequency),
10116
10127
  "Please select a valid selling frequency"
10117
10128
  ).required("Required field"),
10118
- yearlySellingApprox: create$5().label("Yearly Selling Approx").min(0, "Yearly selling approximate must be at least 0").integer("Yearly selling approximate must be a whole number").required("Yearly selling approximate is required").test("no-leading-zeros", "", noLeadingZeros("Yearly selling approximate"))
10129
+ yearlySellingApprox: create$5().label("Yearly Selling Approx").min(1, "Yearly selling approximate must be at least 1").integer("Yearly selling approximate must be a whole number").required("Yearly selling approximate is required").test("no-leading-zeros", "", noLeadingZeros("Yearly selling approximate"))
10119
10130
  });
10120
10131
  var testerEventSchema = create$3().shape({
10121
10132
  markets: create$2().of(
@@ -10147,6 +10158,10 @@ var testerEventSchema = create$3().shape({
10147
10158
  });
10148
10159
  var testerSchema = create$3().shape({
10149
10160
  businessName: create$6().required("Business name is required"),
10161
+ consents: create$3().shape({
10162
+ betaTestConsent: create$7().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
10163
+ privacyConsent: create$7().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
10164
+ }),
10150
10165
  email: emailRequiredSchema,
10151
10166
  event: create$3().when("resourceType", {
10152
10167
  is: (resourceType) => resourceType === "event",
@@ -10162,7 +10177,6 @@ var testerSchema = create$3().shape({
10162
10177
  // skip empty values
10163
10178
  ),
10164
10179
  osType: create$8().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
10165
- privacyConsent: create$7().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required"),
10166
10180
  region: create$6().required("Region is required"),
10167
10181
  resourceType: create$8().oneOf(
10168
10182
  Object.values(EnumResourceType),
@@ -10923,7 +10937,7 @@ var TesterVendorSchema = new MongooseSchema9(
10923
10937
  applyToAtLeastOneMarket: { required: true, type: Boolean },
10924
10938
  completeFeedbackQuestionnaire: { required: true, type: Boolean },
10925
10939
  excitementAboutApp: { required: false, type: String },
10926
- sendPhotoForSocialMedia: { required: true, type: Boolean },
10940
+ sendPhotoForSocialMedia: { required: false, type: Boolean },
10927
10941
  socialMediaFeatureReason: { required: false, type: String },
10928
10942
  testingPeriodConcerns: { required: false, type: String },
10929
10943
  tryVisitorFeatures: { required: true, type: Boolean },
@@ -10984,6 +10998,13 @@ var TesterSchema = new MongooseSchema9(
10984
10998
  active: { default: false, required: true, type: Boolean },
10985
10999
  approved: { default: false, required: true, type: Boolean },
10986
11000
  businessName: { required: true, type: String },
11001
+ consents: {
11002
+ required: true,
11003
+ type: {
11004
+ betaTestConsent: { required: true, type: Boolean },
11005
+ privacyConsent: { required: true, type: Boolean }
11006
+ }
11007
+ },
10987
11008
  email: { required: true, type: String },
10988
11009
  event: { required: false, type: TesterEventsSchema },
10989
11010
  firstName: { required: true, type: String },
@@ -10994,7 +11015,6 @@ var TesterSchema = new MongooseSchema9(
10994
11015
  required: true,
10995
11016
  type: String
10996
11017
  },
10997
- privacyConsent: { required: true, type: Boolean },
10998
11018
  region: { required: true, type: String },
10999
11019
  resourceType: {
11000
11020
  enum: Object.values(EnumResourceType),
@@ -11457,4 +11477,4 @@ react/cjs/react.development.js:
11457
11477
  * LICENSE file in the root directory of this source tree.
11458
11478
  *)
11459
11479
  */
11460
- //# sourceMappingURL=chunk-RGNDTLXG.mjs.map
11480
+ //# sourceMappingURL=chunk-4SS4T6XE.mjs.map