@springtree/eva-services-core-management 2.21.1 → 2.22.0

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.
@@ -129,6 +129,20 @@ But if the list is a mixed product list, all updates will be applied according t
129
129
  response;
130
130
  }
131
131
  CoreManagement.AddUserBoughtProductDetail = AddUserBoughtProductDetail;
132
+ /**
133
+ * Answer a survey question
134
+ *
135
+ * @export
136
+ * @class AnswerSurveyQuestion
137
+ * @implements {EvaService}
138
+ */
139
+ class AnswerSurveyQuestion {
140
+ name = 'CoreManagement:AnswerSurveyQuestion';
141
+ path = '/message/AnswerSurveyQuestion';
142
+ request;
143
+ response;
144
+ }
145
+ CoreManagement.AnswerSurveyQuestion = AnswerSurveyQuestion;
132
146
  /**
133
147
  * Archive a case.
134
148
  *
@@ -1606,6 +1620,48 @@ Name is required
1606
1620
  response;
1607
1621
  }
1608
1622
  CoreManagement.CreateSupplierProduct = CreateSupplierProduct;
1623
+ /**
1624
+ * Creates a new survey
1625
+ *
1626
+ * @export
1627
+ * @class CreateSurvey
1628
+ * @implements {EvaService}
1629
+ */
1630
+ class CreateSurvey {
1631
+ name = 'CoreManagement:CreateSurvey';
1632
+ path = '/message/CreateSurvey';
1633
+ request;
1634
+ response;
1635
+ }
1636
+ CoreManagement.CreateSurvey = CreateSurvey;
1637
+ /**
1638
+ * Creates a new survey
1639
+ *
1640
+ * @export
1641
+ * @class CreateSurveyQuestion
1642
+ * @implements {EvaService}
1643
+ */
1644
+ class CreateSurveyQuestion {
1645
+ name = 'CoreManagement:CreateSurveyQuestion';
1646
+ path = '/message/CreateSurveyQuestion';
1647
+ request;
1648
+ response;
1649
+ }
1650
+ CoreManagement.CreateSurveyQuestion = CreateSurveyQuestion;
1651
+ /**
1652
+ * Creates a new survey question route
1653
+ *
1654
+ * @export
1655
+ * @class CreateSurveyQuestionRoute
1656
+ * @implements {EvaService}
1657
+ */
1658
+ class CreateSurveyQuestionRoute {
1659
+ name = 'CoreManagement:CreateSurveyQuestionRoute';
1660
+ path = '/message/CreateSurveyQuestionRoute';
1661
+ request;
1662
+ response;
1663
+ }
1664
+ CoreManagement.CreateSurveyQuestionRoute = CreateSurveyQuestionRoute;
1609
1665
  /**
1610
1666
  * Create a new UnitOfMeasure
1611
1667
  *
@@ -1690,6 +1746,23 @@ Name is required
1690
1746
  response;
1691
1747
  }
1692
1748
  CoreManagement.CreateVisibilityGroup = CreateVisibilityGroup;
1749
+ /**
1750
+ * Deactivates a survey.
1751
+ NOTE THAT this deactivates all published versions of the survey, so it can no longer be responded to at the end of the grace period.
1752
+ It will also take the survey back into draft.
1753
+ The survey is re-enabled when a new version is published.
1754
+ *
1755
+ * @export
1756
+ * @class DeactivateSurvey
1757
+ * @implements {EvaService}
1758
+ */
1759
+ class DeactivateSurvey {
1760
+ name = 'CoreManagement:DeactivateSurvey';
1761
+ path = '/message/DeactivateSurvey';
1762
+ request;
1763
+ response;
1764
+ }
1765
+ CoreManagement.DeactivateSurvey = DeactivateSurvey;
1693
1766
  /**
1694
1767
  * Delete an existing Account
1695
1768
  *
@@ -2720,6 +2793,48 @@ When it's SupplierBarcode all matching barcodes will be removed
2720
2793
  response;
2721
2794
  }
2722
2795
  CoreManagement.DeleteSupplierProduct = DeleteSupplierProduct;
2796
+ /**
2797
+ * Update a survey
2798
+ *
2799
+ * @export
2800
+ * @class DeleteSurvey
2801
+ * @implements {EvaService}
2802
+ */
2803
+ class DeleteSurvey {
2804
+ name = 'CoreManagement:DeleteSurvey';
2805
+ path = '/message/DeleteSurvey';
2806
+ request;
2807
+ response;
2808
+ }
2809
+ CoreManagement.DeleteSurvey = DeleteSurvey;
2810
+ /**
2811
+ * Delete a survey question
2812
+ *
2813
+ * @export
2814
+ * @class DeleteSurveyQuestion
2815
+ * @implements {EvaService}
2816
+ */
2817
+ class DeleteSurveyQuestion {
2818
+ name = 'CoreManagement:DeleteSurveyQuestion';
2819
+ path = '/message/DeleteSurveyQuestion';
2820
+ request;
2821
+ response;
2822
+ }
2823
+ CoreManagement.DeleteSurveyQuestion = DeleteSurveyQuestion;
2824
+ /**
2825
+ * Delete a survey question route.
2826
+ *
2827
+ * @export
2828
+ * @class DeleteSurveyQuestionRoute
2829
+ * @implements {EvaService}
2830
+ */
2831
+ class DeleteSurveyQuestionRoute {
2832
+ name = 'CoreManagement:DeleteSurveyQuestionRoute';
2833
+ path = '/message/DeleteSurveyQuestionRoute';
2834
+ request;
2835
+ response;
2836
+ }
2837
+ CoreManagement.DeleteSurveyQuestionRoute = DeleteSurveyQuestionRoute;
2723
2838
  /**
2724
2839
  * Delete a UnitOfMeasure
2725
2840
  *
@@ -3735,6 +3850,34 @@ If available a Description and/or DefaultValue will be returned
3735
3850
  response;
3736
3851
  }
3737
3852
  CoreManagement.GetAvailableShippingMethodHandlers = GetAvailableShippingMethodHandlers;
3853
+ /**
3854
+ * Returns available survey triggers.
3855
+ *
3856
+ * @export
3857
+ * @class GetAvailableSurveyTriggers
3858
+ * @implements {EvaService}
3859
+ */
3860
+ class GetAvailableSurveyTriggers {
3861
+ name = 'CoreManagement:GetAvailableSurveyTriggers';
3862
+ path = '/message/GetAvailableSurveyTriggers';
3863
+ request;
3864
+ response;
3865
+ }
3866
+ CoreManagement.GetAvailableSurveyTriggers = GetAvailableSurveyTriggers;
3867
+ /**
3868
+ * Get all available surveys for user
3869
+ *
3870
+ * @export
3871
+ * @class GetAvailableSurveys
3872
+ * @implements {EvaService}
3873
+ */
3874
+ class GetAvailableSurveys {
3875
+ name = 'CoreManagement:GetAvailableSurveys';
3876
+ path = '/message/GetAvailableSurveys';
3877
+ request;
3878
+ response;
3879
+ }
3880
+ CoreManagement.GetAvailableSurveys = GetAvailableSurveys;
3738
3881
  /**
3739
3882
  * Get the available UserProperties on which requirements can be set.
3740
3883
  *
@@ -5059,6 +5202,48 @@ These handlers are custom build to fetch values for ProductRequirements from ext
5059
5202
  response;
5060
5203
  }
5061
5204
  CoreManagement.GetSupportedFunctionalities = GetSupportedFunctionalities;
5205
+ /**
5206
+ * Get the survey
5207
+ *
5208
+ * @export
5209
+ * @class GetSurveyByID
5210
+ * @implements {EvaService}
5211
+ */
5212
+ class GetSurveyByID {
5213
+ name = 'CoreManagement:GetSurveyByID';
5214
+ path = '/message/GetSurveyByID';
5215
+ request;
5216
+ response;
5217
+ }
5218
+ CoreManagement.GetSurveyByID = GetSurveyByID;
5219
+ /**
5220
+ * Get a question that is already answered (to navigate back and forth in the survey)
5221
+ *
5222
+ * @export
5223
+ * @class GetSurveyQuestionAnswer
5224
+ * @implements {EvaService}
5225
+ */
5226
+ class GetSurveyQuestionAnswer {
5227
+ name = 'CoreManagement:GetSurveyQuestionAnswer';
5228
+ path = '/message/GetSurveyQuestionAnswer';
5229
+ request;
5230
+ response;
5231
+ }
5232
+ CoreManagement.GetSurveyQuestionAnswer = GetSurveyQuestionAnswer;
5233
+ /**
5234
+ * Get the survey question
5235
+ *
5236
+ * @export
5237
+ * @class GetSurveyQuestionByID
5238
+ * @implements {EvaService}
5239
+ */
5240
+ class GetSurveyQuestionByID {
5241
+ name = 'CoreManagement:GetSurveyQuestionByID';
5242
+ path = '/message/GetSurveyQuestionByID';
5243
+ request;
5244
+ response;
5245
+ }
5246
+ CoreManagement.GetSurveyQuestionByID = GetSurveyQuestionByID;
5062
5247
  /**
5063
5248
  * List the UnitOfMeasures
5064
5249
  *
@@ -6636,6 +6821,8 @@ It is required to supply some OrganizationUnitIDs or some ProductIDs in the Page
6636
6821
  * List the Stock per product/stocklabel for a subset of OrganizationUnits.
6637
6822
 
6638
6823
  The page size `Limit` has a maximum value of `1.024` for this service (unless `DownloadOverview` is `true`).
6824
+
6825
+ If neither `OrganizationUnitIDs` nor `OrganizationUnitSetID` are specified, the service will return an empty result.
6639
6826
  *
6640
6827
  * @export
6641
6828
  * @class ListStockForOrganizationUnits
@@ -6720,6 +6907,34 @@ The page size `Limit` has a maximum value of `1.024` for this service (unless `D
6720
6907
  response;
6721
6908
  }
6722
6909
  CoreManagement.ListSupplierProducts = ListSupplierProducts;
6910
+ /**
6911
+ * List the survey questions
6912
+ *
6913
+ * @export
6914
+ * @class ListSurveyQuestions
6915
+ * @implements {EvaService}
6916
+ */
6917
+ class ListSurveyQuestions {
6918
+ name = 'CoreManagement:ListSurveyQuestions';
6919
+ path = '/message/ListSurveyQuestions';
6920
+ request;
6921
+ response;
6922
+ }
6923
+ CoreManagement.ListSurveyQuestions = ListSurveyQuestions;
6924
+ /**
6925
+ * List the surveys
6926
+ *
6927
+ * @export
6928
+ * @class ListSurveys
6929
+ * @implements {EvaService}
6930
+ */
6931
+ class ListSurveys {
6932
+ name = 'CoreManagement:ListSurveys';
6933
+ path = '/message/ListSurveys';
6934
+ request;
6935
+ response;
6936
+ }
6937
+ CoreManagement.ListSurveys = ListSurveys;
6723
6938
  /**
6724
6939
  * TODO: Needs documentation
6725
6940
  *
@@ -6996,6 +7211,25 @@ Also the MessageTemplate `QRCodePrintingTemplate` can be configured in Stencil.
6996
7211
  response;
6997
7212
  }
6998
7213
  CoreManagement.ProcessUnshippedPurchaseOrdersFromExcel = ProcessUnshippedPurchaseOrdersFromExcel;
7214
+ /**
7215
+ * Publishes all changes made to the survey.
7216
+
7217
+ Service will return an error when the survey is already published.
7218
+
7219
+ Survey cannot be published by the same user as the one who created / modified the survey, unless they have the right 'SurveySelfPublish'.
7220
+ The service will return an error if the same user without the right 'SurveySelfPublish' tries to publish the survey.
7221
+ *
7222
+ * @export
7223
+ * @class PublishSurvey
7224
+ * @implements {EvaService}
7225
+ */
7226
+ class PublishSurvey {
7227
+ name = 'CoreManagement:PublishSurvey';
7228
+ path = '/message/PublishSurvey';
7229
+ request;
7230
+ response;
7231
+ }
7232
+ CoreManagement.PublishSurvey = PublishSurvey;
6999
7233
  /**
7000
7234
  * Push bought products for users. Only accepts 10000 users per request
7001
7235
  *
@@ -7869,6 +8103,20 @@ Will apply all changes or no changes in case of an error
7869
8103
  response;
7870
8104
  }
7871
8105
  CoreManagement.SetSettings = SetSettings;
8106
+ /**
8107
+ * Takes in all routings of a question and sets their sequences.
8108
+ *
8109
+ * @export
8110
+ * @class SetSurveyQuestionRoutingSequences
8111
+ * @implements {EvaService}
8112
+ */
8113
+ class SetSurveyQuestionRoutingSequences {
8114
+ name = 'CoreManagement:SetSurveyQuestionRoutingSequences';
8115
+ path = '/message/SetSurveyQuestionRoutingSequences';
8116
+ request;
8117
+ response;
8118
+ }
8119
+ CoreManagement.SetSurveyQuestionRoutingSequences = SetSurveyQuestionRoutingSequences;
7872
8120
  /**
7873
8121
  * Update the Roles for an User. The roles provided will replace any existing roles on this user!
7874
8122
 
@@ -7887,6 +8135,20 @@ The UserType defines as which UserType the User will act when logging in. For em
7887
8135
  response;
7888
8136
  }
7889
8137
  CoreManagement.SetUserRoles = SetUserRoles;
8138
+ /**
8139
+ * Start a survey
8140
+ *
8141
+ * @export
8142
+ * @class StartSurvey
8143
+ * @implements {EvaService}
8144
+ */
8145
+ class StartSurvey {
8146
+ name = 'CoreManagement:StartSurvey';
8147
+ path = '/message/StartSurvey';
8148
+ request;
8149
+ response;
8150
+ }
8151
+ CoreManagement.StartSurvey = StartSurvey;
7890
8152
  /**
7891
8153
  * Unblock a users subscription.
7892
8154
  *
@@ -9166,6 +9428,50 @@ Updates the given requirements and removes all other requirements from the Subsc
9166
9428
  response;
9167
9429
  }
9168
9430
  CoreManagement.UpdateSupplierProductStock = UpdateSupplierProductStock;
9431
+ /**
9432
+ * Update a survey.
9433
+ NOTE THAT after update, the published survey will remain active and the current data will be taken into draft mode for republishing.
9434
+ After publishing you can no longer change the OrganizationUnitSetID, SurveyContext, TriggerEventType and (depending on the TriggerEventType) some of the TriggerEventData properties.
9435
+ *
9436
+ * @export
9437
+ * @class UpdateSurvey
9438
+ * @implements {EvaService}
9439
+ */
9440
+ class UpdateSurvey {
9441
+ name = 'CoreManagement:UpdateSurvey';
9442
+ path = '/message/UpdateSurvey';
9443
+ request;
9444
+ response;
9445
+ }
9446
+ CoreManagement.UpdateSurvey = UpdateSurvey;
9447
+ /**
9448
+ * Update a survey question
9449
+ *
9450
+ * @export
9451
+ * @class UpdateSurveyQuestion
9452
+ * @implements {EvaService}
9453
+ */
9454
+ class UpdateSurveyQuestion {
9455
+ name = 'CoreManagement:UpdateSurveyQuestion';
9456
+ path = '/message/UpdateSurveyQuestion';
9457
+ request;
9458
+ response;
9459
+ }
9460
+ CoreManagement.UpdateSurveyQuestion = UpdateSurveyQuestion;
9461
+ /**
9462
+ * Update a survey question route
9463
+ *
9464
+ * @export
9465
+ * @class UpdateSurveyQuestionRoute
9466
+ * @implements {EvaService}
9467
+ */
9468
+ class UpdateSurveyQuestionRoute {
9469
+ name = 'CoreManagement:UpdateSurveyQuestionRoute';
9470
+ path = '/message/UpdateSurveyQuestionRoute';
9471
+ request;
9472
+ response;
9473
+ }
9474
+ CoreManagement.UpdateSurveyQuestionRoute = UpdateSurveyQuestionRoute;
9169
9475
  /**
9170
9476
  * Update an existing UnitOfMeasure
9171
9477
  *