@itentialopensource/adapter-servicenow 2.9.4 → 2.9.6

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.
@@ -503,6 +503,395 @@
503
503
  "mockFile": ""
504
504
  }
505
505
  ]
506
+ },
507
+ {
508
+ "name": "getChangeRequest",
509
+ "protocol": "REST",
510
+ "method": "GET",
511
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change?{query}",
512
+ "requestSchema": "schema.json",
513
+ "responseSchema": "schema.json",
514
+ "timeout": 0,
515
+ "sendEmpty": false,
516
+ "sendGetBody": false,
517
+ "requestDatatype": "JSON",
518
+ "responseDatatype": "JSON",
519
+ "headers": {},
520
+ "responseObjects": [
521
+ {
522
+ "type": "default",
523
+ "key": "",
524
+ "mockFile": ""
525
+ }
526
+ ]
527
+ },
528
+ {
529
+ "name": "createChangeRequestRecord",
530
+ "protocol": "REST",
531
+ "method": "POST",
532
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change?{query}",
533
+ "requestSchema": "schema.json",
534
+ "responseSchema": "schema.json",
535
+ "timeout": 0,
536
+ "sendEmpty": false,
537
+ "requestDatatype": "JSON",
538
+ "responseDatatype": "JSON",
539
+ "headers": {},
540
+ "responseObjects": [
541
+ {
542
+ "type": "default",
543
+ "key": "",
544
+ "mockFile": ""
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "name": "getConfigurationItemSchedule",
550
+ "protocol": "REST",
551
+ "method": "GET",
552
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/ci/{pathv1}/schedule?{query}",
553
+ "requestSchema": "schema.json",
554
+ "responseSchema": "schema.json",
555
+ "timeout": 0,
556
+ "sendEmpty": false,
557
+ "sendGetBody": false,
558
+ "requestDatatype": "JSON",
559
+ "responseDatatype": "JSON",
560
+ "headers": {},
561
+ "responseObjects": [
562
+ {
563
+ "type": "default",
564
+ "key": "",
565
+ "mockFile": ""
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "name": "updateEmergencyChangeRequestById",
571
+ "protocol": "REST",
572
+ "method": "PATCH",
573
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/emergency/{pathv1}?{query}",
574
+ "requestSchema": "schema.json",
575
+ "responseSchema": "schema.json",
576
+ "timeout": 0,
577
+ "sendEmpty": false,
578
+ "requestDatatype": "JSON",
579
+ "responseDatatype": "JSON",
580
+ "headers": {},
581
+ "responseObjects": [
582
+ {
583
+ "type": "default",
584
+ "key": "",
585
+ "mockFile": ""
586
+ }
587
+ ]
588
+ },
589
+ {
590
+ "name": "getChangeModel",
591
+ "protocol": "REST",
592
+ "method": "GET",
593
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/model?{query}",
594
+ "requestSchema": "schema.json",
595
+ "responseSchema": "schema.json",
596
+ "timeout": 0,
597
+ "sendEmpty": false,
598
+ "sendGetBody": false,
599
+ "requestDatatype": "JSON",
600
+ "responseDatatype": "JSON",
601
+ "headers": {},
602
+ "responseObjects": [
603
+ {
604
+ "type": "default",
605
+ "key": "",
606
+ "mockFile": ""
607
+ }
608
+ ]
609
+ },
610
+ {
611
+ "name": "getChangeModelById",
612
+ "protocol": "REST",
613
+ "method": "GET",
614
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/model/{pathv1}?{query}",
615
+ "requestSchema": "schema.json",
616
+ "responseSchema": "schema.json",
617
+ "timeout": 0,
618
+ "sendEmpty": false,
619
+ "sendGetBody": false,
620
+ "requestDatatype": "JSON",
621
+ "responseDatatype": "JSON",
622
+ "headers": {},
623
+ "responseObjects": [
624
+ {
625
+ "type": "default",
626
+ "key": "",
627
+ "mockFile": ""
628
+ }
629
+ ]
630
+ },
631
+ {
632
+ "name": "getChangeWorkerById",
633
+ "protocol": "REST",
634
+ "method": "GET",
635
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/worker/{pathv1}?{query}",
636
+ "requestSchema": "schema.json",
637
+ "responseSchema": "schema.json",
638
+ "timeout": 0,
639
+ "sendEmpty": false,
640
+ "sendGetBody": false,
641
+ "requestDatatype": "JSON",
642
+ "responseDatatype": "JSON",
643
+ "headers": {},
644
+ "responseObjects": [
645
+ {
646
+ "type": "default",
647
+ "key": "",
648
+ "mockFile": ""
649
+ }
650
+ ]
651
+ },
652
+ {
653
+ "name": "updateChangeRequestById",
654
+ "protocol": "REST",
655
+ "method": "PATCH",
656
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}?{query}",
657
+ "requestSchema": "schema.json",
658
+ "responseSchema": "schema.json",
659
+ "timeout": 0,
660
+ "sendEmpty": false,
661
+ "requestDatatype": "JSON",
662
+ "responseDatatype": "JSON",
663
+ "headers": {},
664
+ "responseObjects": [
665
+ {
666
+ "type": "default",
667
+ "key": "",
668
+ "mockFile": ""
669
+ }
670
+ ]
671
+ },
672
+ {
673
+ "name": "deleteChangeRequestById",
674
+ "protocol": "REST",
675
+ "method": "DELETE",
676
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}?{query}",
677
+ "requestSchema": "schema.json",
678
+ "responseSchema": "schema.json",
679
+ "timeout": 0,
680
+ "sendEmpty": false,
681
+ "requestDatatype": "JSON",
682
+ "responseDatatype": "JSON",
683
+ "headers": {},
684
+ "responseObjects": [
685
+ {
686
+ "type": "default",
687
+ "key": "",
688
+ "mockFile": ""
689
+ }
690
+ ]
691
+ },
692
+ {
693
+ "name": "getChangeRequestRecordById",
694
+ "protocol": "REST",
695
+ "method": "GET",
696
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}?{query}",
697
+ "requestSchema": "schema.json",
698
+ "responseSchema": "schema.json",
699
+ "timeout": 0,
700
+ "sendEmpty": false,
701
+ "sendGetBody": false,
702
+ "requestDatatype": "JSON",
703
+ "responseDatatype": "JSON",
704
+ "headers": {},
705
+ "responseObjects": [
706
+ {
707
+ "type": "default",
708
+ "key": "",
709
+ "mockFile": ""
710
+ }
711
+ ]
712
+ },
713
+ {
714
+ "name": "addChangeRequestConfigurationItem",
715
+ "protocol": "REST",
716
+ "method": "POST",
717
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}/ci?{query}",
718
+ "requestSchema": "schema.json",
719
+ "responseSchema": "schema.json",
720
+ "timeout": 0,
721
+ "sendEmpty": false,
722
+ "requestDatatype": "JSON",
723
+ "responseDatatype": "JSON",
724
+ "headers": {},
725
+ "responseObjects": [
726
+ {
727
+ "type": "default",
728
+ "key": "",
729
+ "mockFile": ""
730
+ }
731
+ ]
732
+ },
733
+ {
734
+ "name": "getChangeRequestConfigurationItems",
735
+ "protocol": "REST",
736
+ "method": "GET",
737
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}/ci?{query}",
738
+ "requestSchema": "schema.json",
739
+ "responseSchema": "schema.json",
740
+ "timeout": 0,
741
+ "sendEmpty": false,
742
+ "sendGetBody": false,
743
+ "requestDatatype": "JSON",
744
+ "responseDatatype": "JSON",
745
+ "headers": {},
746
+ "responseObjects": [
747
+ {
748
+ "type": "default",
749
+ "key": "",
750
+ "mockFile": ""
751
+ }
752
+ ]
753
+ },
754
+ {
755
+ "name": "getChangeRequestNextStates",
756
+ "protocol": "REST",
757
+ "method": "GET",
758
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}/nextstates?{query}",
759
+ "requestSchema": "schema.json",
760
+ "responseSchema": "schema.json",
761
+ "timeout": 0,
762
+ "sendEmpty": false,
763
+ "sendGetBody": false,
764
+ "requestDatatype": "JSON",
765
+ "responseDatatype": "JSON",
766
+ "headers": {},
767
+ "responseObjects": [
768
+ {
769
+ "type": "default",
770
+ "key": "",
771
+ "mockFile": ""
772
+ }
773
+ ]
774
+ },
775
+ {
776
+ "name": "refreshChangeRequestImpactedServices",
777
+ "protocol": "REST",
778
+ "method": "POST",
779
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}/refresh_impacted_services?{query}",
780
+ "requestSchema": "schema.json",
781
+ "responseSchema": "schema.json",
782
+ "timeout": 0,
783
+ "sendEmpty": false,
784
+ "requestDatatype": "JSON",
785
+ "responseDatatype": "JSON",
786
+ "headers": {},
787
+ "responseObjects": [
788
+ {
789
+ "type": "default",
790
+ "key": "",
791
+ "mockFile": ""
792
+ }
793
+ ]
794
+ },
795
+ {
796
+ "name": "getChangeRequestSchedule",
797
+ "protocol": "REST",
798
+ "method": "GET",
799
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}/schedule?{query}",
800
+ "requestSchema": "schema.json",
801
+ "responseSchema": "schema.json",
802
+ "timeout": 0,
803
+ "sendEmpty": false,
804
+ "sendGetBody": false,
805
+ "requestDatatype": "JSON",
806
+ "responseDatatype": "JSON",
807
+ "headers": {},
808
+ "responseObjects": [
809
+ {
810
+ "type": "default",
811
+ "key": "",
812
+ "mockFile": ""
813
+ }
814
+ ]
815
+ },
816
+ {
817
+ "name": "updateChangeRequestFirstAvailableSchedule",
818
+ "protocol": "REST",
819
+ "method": "PATCH",
820
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}/schedule/first_available?{query}",
821
+ "requestSchema": "schema.json",
822
+ "responseSchema": "schema.json",
823
+ "timeout": 0,
824
+ "sendEmpty": false,
825
+ "requestDatatype": "JSON",
826
+ "responseDatatype": "JSON",
827
+ "headers": {},
828
+ "responseObjects": [
829
+ {
830
+ "type": "default",
831
+ "key": "",
832
+ "mockFile": ""
833
+ }
834
+ ]
835
+ },
836
+ {
837
+ "name": "updateChangeTaskByTaskId",
838
+ "protocol": "REST",
839
+ "method": "PATCH",
840
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}/task/{pathv2}?{query}",
841
+ "requestSchema": "schema.json",
842
+ "responseSchema": "schema.json",
843
+ "timeout": 0,
844
+ "sendEmpty": false,
845
+ "requestDatatype": "JSON",
846
+ "responseDatatype": "JSON",
847
+ "headers": {},
848
+ "responseObjects": [
849
+ {
850
+ "type": "default",
851
+ "key": "",
852
+ "mockFile": ""
853
+ }
854
+ ]
855
+ },
856
+ {
857
+ "name": "updateChangeRequestRisk",
858
+ "protocol": "REST",
859
+ "method": "PATCH",
860
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/{pathv1}/risk?{query}",
861
+ "requestSchema": "schema.json",
862
+ "responseSchema": "schema.json",
863
+ "timeout": 0,
864
+ "sendEmpty": false,
865
+ "requestDatatype": "JSON",
866
+ "responseDatatype": "JSON",
867
+ "headers": {},
868
+ "responseObjects": [
869
+ {
870
+ "type": "default",
871
+ "key": "",
872
+ "mockFile": ""
873
+ }
874
+ ]
875
+ },
876
+ {
877
+ "name": "updateStandardChangeRequestById",
878
+ "protocol": "REST",
879
+ "method": "PATCH",
880
+ "entitypath": "{base_path}/{version}/sn_chg_rest/change/standard/{pathv1}?{query}",
881
+ "requestSchema": "schema.json",
882
+ "responseSchema": "schema.json",
883
+ "timeout": 0,
884
+ "sendEmpty": false,
885
+ "requestDatatype": "JSON",
886
+ "responseDatatype": "JSON",
887
+ "headers": {},
888
+ "responseObjects": [
889
+ {
890
+ "type": "default",
891
+ "key": "",
892
+ "mockFile": ""
893
+ }
894
+ ]
506
895
  }
507
896
  ]
508
897
  }
@@ -33,7 +33,26 @@
33
33
  "createChangeRequestConflict",
34
34
  "cancelChangeRequestConflict",
35
35
  "createChangeRequestRiskAssessment",
36
- "autoApproveChangeRequest"
36
+ "autoApproveChangeRequest",
37
+ "getChangeRequest",
38
+ "createChangeRequestRecord",
39
+ "getConfigurationItemSchedule",
40
+ "updateEmergencyChangeRequestById",
41
+ "getChangeModel",
42
+ "getChangeModelById",
43
+ "getChangeWorkerById",
44
+ "updateChangeRequestById",
45
+ "deleteChangeRequestById",
46
+ "getChangeRequestRecordById",
47
+ "addChangeRequestConfigurationItem",
48
+ "getChangeRequestConfigurationItems",
49
+ "getChangeRequestNextStates",
50
+ "refreshChangeRequestImpactedServices",
51
+ "getChangeRequestSchedule",
52
+ "updateChangeRequestFirstAvailableSchedule",
53
+ "updateChangeTaskByTaskId",
54
+ "updateChangeRequestRisk",
55
+ "updateStandardChangeRequestById"
37
56
  ],
38
57
  "external_name": "ph_request_type"
39
58
  },
@@ -57,6 +76,86 @@
57
76
  },
58
77
  "external_name": "sysparm_query"
59
78
  },
79
+ "sysparmOffset": {
80
+ "description": "Starting record index for which to begin retrieving records.",
81
+ "parse": false,
82
+ "encode": false,
83
+ "encrypt": {
84
+ "type": "AES",
85
+ "key": ""
86
+ },
87
+ "external_name": "sysparm_offset"
88
+ },
89
+ "sysparmLimit": {
90
+ "description": "Maximum number of records to return.",
91
+ "parse": false,
92
+ "encode": false,
93
+ "encrypt": {
94
+ "type": "AES",
95
+ "key": ""
96
+ },
97
+ "external_name": "sysparm_limit"
98
+ },
99
+ "changeModel": {
100
+ "description": "Name of a change model listed in the Change Model [chg_model] table.",
101
+ "parse": false,
102
+ "encode": false,
103
+ "encrypt": {
104
+ "type": "AES",
105
+ "key": ""
106
+ },
107
+ "external_name": "chg_model"
108
+ },
109
+ "encryptedFields": {
110
+ "description": "List of comma-separated fields to encrypt.",
111
+ "parse": false,
112
+ "encode": false,
113
+ "encrypt": {
114
+ "type": "AES",
115
+ "key": ""
116
+ },
117
+ "external_name": "encrypted_fields"
118
+ },
119
+ "queryType": {
120
+ "description": "Name of the change request type listed in the Choices [sys_choice] table.",
121
+ "parse": false,
122
+ "encode": false,
123
+ "encrypt": {
124
+ "type": "AES",
125
+ "key": ""
126
+ },
127
+ "external_name": "type"
128
+ },
129
+ "durationInSeconds": {
130
+ "description": "Duration of change in seconds, that is, how much time is required to complete the change request task.",
131
+ "parse": false,
132
+ "encode": false,
133
+ "encrypt": {
134
+ "type": "AES",
135
+ "key": ""
136
+ },
137
+ "external_name": "duration_in_seconds"
138
+ },
139
+ "plannedStartTime": {
140
+ "description": "Retrieve the available time slot start at or later than this time.",
141
+ "parse": false,
142
+ "encode": false,
143
+ "encrypt": {
144
+ "type": "AES",
145
+ "key": ""
146
+ },
147
+ "external_name": "planned_start_time"
148
+ },
149
+ "associationType": {
150
+ "description": "Type of association between the CMDB CI and the change request.",
151
+ "parse": false,
152
+ "encode": false,
153
+ "encrypt": {
154
+ "type": "AES",
155
+ "key": ""
156
+ },
157
+ "external_name": "association_type"
158
+ },
60
159
  "id": {
61
160
  "description": "Unique identifier of the standard change request to retrieve from the [change_request] table.",
62
161
  "parse": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-servicenow",
3
- "version": "2.9.4",
3
+ "version": "2.9.6",
4
4
  "description": "This adapter integrates with system described as: servicenowMadrid.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "ServiceNow",
@@ -54,22 +54,22 @@
54
54
  "author": "Itential",
55
55
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-servicenow#readme",
56
56
  "dependencies": {
57
- "@itentialopensource/adapter-utils": "^5.9.4",
58
- "acorn": "^8.12.1",
57
+ "@itentialopensource/adapter-utils": "^5.10.1",
58
+ "acorn": "^8.14.0",
59
59
  "ajv": "^8.17.1",
60
- "axios": "^1.7.4",
60
+ "axios": "^1.8.2",
61
61
  "commander": "^11.0.0",
62
62
  "dns-lookup-promise": "^1.0.4",
63
63
  "fs-extra": "^11.2.0",
64
64
  "json-query": "^2.2.2",
65
- "mocha": "^10.7.3",
65
+ "mocha": "^10.8.2",
66
66
  "mocha-param": "^2.0.1",
67
- "mongodb": "^4.16.0",
67
+ "mongodb": "^4.17.2",
68
68
  "ping": "^0.4.4",
69
69
  "prompts": "^2.4.2",
70
70
  "readline-sync": "^1.4.10",
71
71
  "semver": "^7.6.3",
72
- "winston": "^3.14.2"
72
+ "winston": "^3.17.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "chai": "^4.3.7",