@gls_spain/gps-common 35.15.3 → 35.15.4

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/CHANGELOG.md CHANGED
@@ -1,10 +1,17 @@
1
- ## [35.15.3](https://github.com/GLS-Spain/gps-common/compare/v35.15.2...v35.15.3) (2026-03-10)
1
+ ## [35.15.4](https://github.com/GLS-Spain/gps-common/compare/v35.15.3...v35.15.4) (2026-03-10)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * add properties locker schema ([3450fae](https://github.com/GLS-Spain/gps-common/commit/3450fae69e5079590a6d8e160b49907a6cd75992))
6
+ * add locker variable that i forgot ([f2db81e](https://github.com/GLS-Spain/gps-common/commit/f2db81e5d600ae23dc41ef02e21c4a262717c0c6))
7
7
 
8
+ ## [35.15.3](https://github.com/GLS-Spain/gps-common/compare/v35.15.2...v35.15.3) (2026-03-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add properties locker schema ([3450fae](https://github.com/GLS-Spain/gps-common/commit/3450fae69e5079590a6d8e160b49907a6cd75992))
14
+
8
15
  ## [35.15.2](https://github.com/GLS-Spain/gps-common/compare/v35.15.1...v35.15.2) (2026-03-06)
9
16
 
10
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.15.3",
3
+ "version": "35.15.4",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -557,6 +557,132 @@ const upsertShopResponse = () => ({
557
557
 
558
558
  // LOCKERS
559
559
 
560
+
561
+ const locker = () => ({
562
+ title: 'locker',
563
+ type: 'object',
564
+ properties: {
565
+ _id: uuid(),
566
+ createdAt: datetime(),
567
+ updatedAt: datetime(),
568
+ deletable: { type: 'boolean' },
569
+ readonly: { type: 'boolean', description: 'readonly shops do not allow updates or adding expeditions to them' },
570
+ international: {
571
+ type: 'object',
572
+ properties: {
573
+ partnerKey: { type: 'string' },
574
+ parcelShopId: { type: 'string' },
575
+ },
576
+ required: ['partnerKey', 'parcelShopId'],
577
+ additionalProperties: false,
578
+ },
579
+ defaults: {
580
+ type: 'object',
581
+ properties: { ...pickProperties(defaults(), ['derivationSettings', 'expirationSettings']) },
582
+ required: ['derivationSettings', 'expirationSettings'],
583
+ additionalProperties: false,
584
+ },
585
+ network: {
586
+ type: 'object',
587
+ properties: { ...pickProperties(network(), ['_id', 'name', 'derivationSettings', 'expirationSettings']) },
588
+ required: ['_id', 'name'],
589
+ additionalProperties: false,
590
+ },
591
+ zone: {
592
+ type: 'object',
593
+ properties: { ...pickProperties(zone(), ['_id', 'name']) },
594
+ required: ['_id', 'name'],
595
+ additionalProperties: false,
596
+ },
597
+ openingRepresentative: shopRepresentative(),
598
+ managingRepresentative: shopRepresentative(),
599
+ status: {
600
+ type: 'object',
601
+ properties: {
602
+ code: { type: 'string', enum: ['enabled', 'disabled', 'manuallyDisabled'] },
603
+ disabled: {
604
+ type: 'object',
605
+ properties: {
606
+ at: datetime(),
607
+ reason: { type: 'string', trim: true },
608
+ },
609
+ required: ['at', 'reason'],
610
+ additionalProperties: false,
611
+ },
612
+ manuallyDisabled: {
613
+ type: 'object',
614
+ properties: {
615
+ _id: uuid(),
616
+ at: datetime(),
617
+ to: datetime(),
618
+ reason: { type: 'string', trim: true },
619
+ },
620
+ required: ['at', 'reason'],
621
+ additionalProperties: false,
622
+ },
623
+ },
624
+ required: ['code'],
625
+ additionalProperties: false,
626
+ },
627
+ name: { type: 'string', trim: true },
628
+ address: addressWithRequiredLocation(),
629
+ capabilities: {
630
+ type: 'array',
631
+ items: { type: 'string', enum: ['deliver', 'pickup', 'sell', 'sellplus'] },
632
+ uniqueItems: true,
633
+ },
634
+ openingSchedule: shopSchedule(),
635
+ holidays: { type: 'array', items: shopHoliday(), uniqueItems: true },
636
+ timezone: timezone(),
637
+ contacts: {
638
+ type: 'array',
639
+ items: contact(),
640
+ },
641
+ fiscal: fiscal(),
642
+ activity: shopActivity(),
643
+ notes: { type: 'string', trim: true },
644
+ derivationSettings: derivationSettings(),
645
+ expirationSettings: expirationSettings(),
646
+ eco: { type: 'boolean', default: false },
647
+ gold: { type: 'boolean', default: false },
648
+ radical: { type: 'boolean', default: false },
649
+ operations: { type: ['boolean', 'string'], trim: true },
650
+ reverseLogistic: { type: 'boolean', default: false },
651
+ squareCode: { type: ['integer', 'string'], minimum: 0, maximum: 32767, description: 'agency code' },
652
+ clientCode: { type: ['integer', 'string'], description: 'client code' },
653
+ channelingAgencyCode: { type: ['integer', 'string', 'null'], description: 'Channeling Agency Code' },
654
+ capacity: { type: 'string' },
655
+ courierAccessCode: {
656
+ type: 'object',
657
+ properties: {
658
+ code: { type: 'string' },
659
+ updatedAt: { type: 'string', format: 'date-time' },
660
+ },
661
+ required: ['code', 'updatedAt'],
662
+ additionalProperties: false,
663
+ },
664
+ },
665
+ required: [
666
+ '_id',
667
+ 'createdAt',
668
+ 'updatedAt',
669
+ 'deletable',
670
+ 'readonly',
671
+ 'international',
672
+ 'defaults',
673
+ 'network',
674
+ 'status',
675
+ 'name',
676
+ 'address',
677
+ 'capabilities',
678
+ 'openingSchedule',
679
+ 'timezone',
680
+ 'contacts',
681
+ ],
682
+ additionalProperties: false,
683
+ });
684
+
685
+
560
686
  const createLockerRequest = () =>
561
687
  createRequest({
562
688
  type: 'object',