data-primals-engine 1.4.2 → 1.4.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.
@@ -162,6 +162,9 @@ export const validateField = (field) => {
162
162
  case 'cronSchedule':
163
163
  allowedFieldTest(['cronMask']);
164
164
  return true;
165
+ case 'geolocation':
166
+ allowedFieldTest([]);
167
+ return true;
165
168
  case 'calculated':
166
169
  allowedFieldTest(['calculation']);
167
170
  return true;
package/swagger-en.yml CHANGED
@@ -599,6 +599,47 @@ components:
599
599
  description: ID of a token document
600
600
  required:
601
601
  - username
602
+ userPermission:
603
+ type: object
604
+ properties:
605
+ _id:
606
+ type: string
607
+ description: Unique document identifier (MongoDB ObjectId)
608
+ readOnly: true
609
+ _user:
610
+ type: string
611
+ description: Identifier of the user owning this document
612
+ readOnly: true
613
+ _model:
614
+ type: string
615
+ description: Name of the model this document belongs to
616
+ readOnly: true
617
+ default: userPermission
618
+ _hash:
619
+ type: number
620
+ description: Document hash for integrity verification
621
+ readOnly: true
622
+ _pack:
623
+ type: string
624
+ description: Name of the pack this document belongs to (if applicable)
625
+ readOnly: true
626
+ user:
627
+ type: string
628
+ description: ID of a user document
629
+ permission:
630
+ type: string
631
+ description: ID of a permission document
632
+ isGranted:
633
+ type: boolean
634
+ description: "True to grant the permission, False to revoke it explicitly."
635
+ expiresAt:
636
+ type: string
637
+ format: date-time
638
+ description: "If set, the exception (grant or revocation) is temporary."
639
+ required:
640
+ - user
641
+ - permission
642
+ - isGranted
602
643
  token:
603
644
  type: object
604
645
  properties:
@@ -792,6 +833,39 @@ components:
792
833
  required:
793
834
  - name
794
835
  - type
836
+ env:
837
+ type: object
838
+ properties:
839
+ _id:
840
+ type: string
841
+ description: Unique document identifier (MongoDB ObjectId)
842
+ readOnly: true
843
+ _user:
844
+ type: string
845
+ description: Identifier of the user owning this document
846
+ readOnly: true
847
+ _model:
848
+ type: string
849
+ description: Name of the model this document belongs to
850
+ readOnly: true
851
+ default: env
852
+ _hash:
853
+ type: number
854
+ description: Document hash for integrity verification
855
+ readOnly: true
856
+ _pack:
857
+ type: string
858
+ description: Name of the pack this document belongs to (if applicable)
859
+ readOnly: true
860
+ name:
861
+ type: string
862
+ description: ""
863
+ value:
864
+ type: string
865
+ description: ""
866
+ required:
867
+ - name
868
+ - type
795
869
  message:
796
870
  type: object
797
871
  properties:
@@ -864,6 +938,65 @@ components:
864
938
  description: ""
865
939
  required:
866
940
  - content
941
+ alert:
942
+ type: object
943
+ properties:
944
+ _id:
945
+ type: string
946
+ description: Unique document identifier (MongoDB ObjectId)
947
+ readOnly: true
948
+ _user:
949
+ type: string
950
+ description: Identifier of the user owning this document
951
+ readOnly: true
952
+ _model:
953
+ type: string
954
+ description: Name of the model this document belongs to
955
+ readOnly: true
956
+ default: alert
957
+ _hash:
958
+ type: number
959
+ description: Document hash for integrity verification
960
+ readOnly: true
961
+ _pack:
962
+ type: string
963
+ description: Name of the pack this document belongs to (if applicable)
964
+ readOnly: true
965
+ name:
966
+ type: string
967
+ description: ""
968
+ targetModel:
969
+ type: string
970
+ description: "The name of the model to target."
971
+ description:
972
+ type: string
973
+ description: ""
974
+ triggerCondition:
975
+ type: string
976
+ description: "The condition that, if met, will trigger the alert."
977
+ frequency:
978
+ type: string
979
+ description: "How often to check if the condition is met (CRON format)."
980
+ isActive:
981
+ type: boolean
982
+ default: true
983
+ description: ""
984
+ sendEmail:
985
+ type: boolean
986
+ default: false
987
+ description: "Check to also send an email notification."
988
+ lastNotifiedAt:
989
+ type: string
990
+ format: date-time
991
+ description: "Timestamp of the last notification sent for this alert."
992
+ message:
993
+ type: string
994
+ description: "Custom message for the email. If empty, a default message will be used. You can use variables like {count}, {alert.name}..."
995
+ required:
996
+ - name
997
+ - targetModel
998
+ - triggerCondition
999
+ - frequency
867
1000
  webpage:
868
1001
  type: object
869
1002
  properties: