@springtree/eva-services-core-management 2.21.1 → 2.23.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
  *
@@ -1021,6 +1035,20 @@ When this OrganizationUnitSet doesn't have this PaymentType yet, it will be crea
1021
1035
  response;
1022
1036
  }
1023
1037
  CoreManagement.CreateOrderLedgerType = CreateOrderLedgerType;
1038
+ /**
1039
+ * Creates a new company associated with the organization unit type
1040
+ *
1041
+ * @export
1042
+ * @class CreateOrganizationUnitCompany
1043
+ * @implements {EvaService}
1044
+ */
1045
+ class CreateOrganizationUnitCompany {
1046
+ name = 'CoreManagement:CreateOrganizationUnitCompany';
1047
+ path = '/message/CreateOrganizationUnitCompany';
1048
+ request;
1049
+ response;
1050
+ }
1051
+ CoreManagement.CreateOrganizationUnitCompany = CreateOrganizationUnitCompany;
1024
1052
  /**
1025
1053
  * Create an organization unit country
1026
1054
  *
@@ -1606,6 +1634,48 @@ Name is required
1606
1634
  response;
1607
1635
  }
1608
1636
  CoreManagement.CreateSupplierProduct = CreateSupplierProduct;
1637
+ /**
1638
+ * Creates a new survey
1639
+ *
1640
+ * @export
1641
+ * @class CreateSurvey
1642
+ * @implements {EvaService}
1643
+ */
1644
+ class CreateSurvey {
1645
+ name = 'CoreManagement:CreateSurvey';
1646
+ path = '/message/CreateSurvey';
1647
+ request;
1648
+ response;
1649
+ }
1650
+ CoreManagement.CreateSurvey = CreateSurvey;
1651
+ /**
1652
+ * Creates a new survey
1653
+ *
1654
+ * @export
1655
+ * @class CreateSurveyQuestion
1656
+ * @implements {EvaService}
1657
+ */
1658
+ class CreateSurveyQuestion {
1659
+ name = 'CoreManagement:CreateSurveyQuestion';
1660
+ path = '/message/CreateSurveyQuestion';
1661
+ request;
1662
+ response;
1663
+ }
1664
+ CoreManagement.CreateSurveyQuestion = CreateSurveyQuestion;
1665
+ /**
1666
+ * Creates a new survey question route
1667
+ *
1668
+ * @export
1669
+ * @class CreateSurveyQuestionRoute
1670
+ * @implements {EvaService}
1671
+ */
1672
+ class CreateSurveyQuestionRoute {
1673
+ name = 'CoreManagement:CreateSurveyQuestionRoute';
1674
+ path = '/message/CreateSurveyQuestionRoute';
1675
+ request;
1676
+ response;
1677
+ }
1678
+ CoreManagement.CreateSurveyQuestionRoute = CreateSurveyQuestionRoute;
1609
1679
  /**
1610
1680
  * Create a new UnitOfMeasure
1611
1681
  *
@@ -1690,6 +1760,23 @@ Name is required
1690
1760
  response;
1691
1761
  }
1692
1762
  CoreManagement.CreateVisibilityGroup = CreateVisibilityGroup;
1763
+ /**
1764
+ * Deactivates a survey.
1765
+ 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.
1766
+ It will also take the survey back into draft.
1767
+ The survey is re-enabled when a new version is published.
1768
+ *
1769
+ * @export
1770
+ * @class DeactivateSurvey
1771
+ * @implements {EvaService}
1772
+ */
1773
+ class DeactivateSurvey {
1774
+ name = 'CoreManagement:DeactivateSurvey';
1775
+ path = '/message/DeactivateSurvey';
1776
+ request;
1777
+ response;
1778
+ }
1779
+ CoreManagement.DeactivateSurvey = DeactivateSurvey;
1693
1780
  /**
1694
1781
  * Delete an existing Account
1695
1782
  *
@@ -2720,6 +2807,48 @@ When it's SupplierBarcode all matching barcodes will be removed
2720
2807
  response;
2721
2808
  }
2722
2809
  CoreManagement.DeleteSupplierProduct = DeleteSupplierProduct;
2810
+ /**
2811
+ * Update a survey
2812
+ *
2813
+ * @export
2814
+ * @class DeleteSurvey
2815
+ * @implements {EvaService}
2816
+ */
2817
+ class DeleteSurvey {
2818
+ name = 'CoreManagement:DeleteSurvey';
2819
+ path = '/message/DeleteSurvey';
2820
+ request;
2821
+ response;
2822
+ }
2823
+ CoreManagement.DeleteSurvey = DeleteSurvey;
2824
+ /**
2825
+ * Delete a survey question
2826
+ *
2827
+ * @export
2828
+ * @class DeleteSurveyQuestion
2829
+ * @implements {EvaService}
2830
+ */
2831
+ class DeleteSurveyQuestion {
2832
+ name = 'CoreManagement:DeleteSurveyQuestion';
2833
+ path = '/message/DeleteSurveyQuestion';
2834
+ request;
2835
+ response;
2836
+ }
2837
+ CoreManagement.DeleteSurveyQuestion = DeleteSurveyQuestion;
2838
+ /**
2839
+ * Delete a survey question route.
2840
+ *
2841
+ * @export
2842
+ * @class DeleteSurveyQuestionRoute
2843
+ * @implements {EvaService}
2844
+ */
2845
+ class DeleteSurveyQuestionRoute {
2846
+ name = 'CoreManagement:DeleteSurveyQuestionRoute';
2847
+ path = '/message/DeleteSurveyQuestionRoute';
2848
+ request;
2849
+ response;
2850
+ }
2851
+ CoreManagement.DeleteSurveyQuestionRoute = DeleteSurveyQuestionRoute;
2723
2852
  /**
2724
2853
  * Delete a UnitOfMeasure
2725
2854
  *
@@ -3325,6 +3454,20 @@ A duplicated discount will not be Active and Verified.
3325
3454
  response;
3326
3455
  }
3327
3456
  CoreManagement.DuplicateDiscountTemplate = DuplicateDiscountTemplate;
3457
+ /**
3458
+ * Duplicate an existing MessageTemplate
3459
+ *
3460
+ * @export
3461
+ * @class DuplicateMessageTemplate
3462
+ * @implements {EvaService}
3463
+ */
3464
+ class DuplicateMessageTemplate {
3465
+ name = 'CoreManagement:DuplicateMessageTemplate';
3466
+ path = '/message/DuplicateMessageTemplate';
3467
+ request;
3468
+ response;
3469
+ }
3470
+ CoreManagement.DuplicateMessageTemplate = DuplicateMessageTemplate;
3328
3471
  /**
3329
3472
  * Duplicate the requirements of an existing set to a new set.
3330
3473
  *
@@ -3735,6 +3878,34 @@ If available a Description and/or DefaultValue will be returned
3735
3878
  response;
3736
3879
  }
3737
3880
  CoreManagement.GetAvailableShippingMethodHandlers = GetAvailableShippingMethodHandlers;
3881
+ /**
3882
+ * Returns available survey triggers.
3883
+ *
3884
+ * @export
3885
+ * @class GetAvailableSurveyTriggers
3886
+ * @implements {EvaService}
3887
+ */
3888
+ class GetAvailableSurveyTriggers {
3889
+ name = 'CoreManagement:GetAvailableSurveyTriggers';
3890
+ path = '/message/GetAvailableSurveyTriggers';
3891
+ request;
3892
+ response;
3893
+ }
3894
+ CoreManagement.GetAvailableSurveyTriggers = GetAvailableSurveyTriggers;
3895
+ /**
3896
+ * Get all available surveys for user
3897
+ *
3898
+ * @export
3899
+ * @class GetAvailableSurveys
3900
+ * @implements {EvaService}
3901
+ */
3902
+ class GetAvailableSurveys {
3903
+ name = 'CoreManagement:GetAvailableSurveys';
3904
+ path = '/message/GetAvailableSurveys';
3905
+ request;
3906
+ response;
3907
+ }
3908
+ CoreManagement.GetAvailableSurveys = GetAvailableSurveys;
3738
3909
  /**
3739
3910
  * Get the available UserProperties on which requirements can be set.
3740
3911
  *
@@ -4466,6 +4637,20 @@ At this moment the supported DeviceTypes are:
4466
4637
  response;
4467
4638
  }
4468
4639
  CoreManagement.GetOrderLoyaltyProgramPaymentTypes = GetOrderLoyaltyProgramPaymentTypes;
4640
+ /**
4641
+ * GetOrganizationUnitCompany
4642
+ *
4643
+ * @export
4644
+ * @class GetOrganizationUnitCompany
4645
+ * @implements {EvaService}
4646
+ */
4647
+ class GetOrganizationUnitCompany {
4648
+ name = 'CoreManagement:GetOrganizationUnitCompany';
4649
+ path = '/message/GetOrganizationUnitCompany';
4650
+ request;
4651
+ response;
4652
+ }
4653
+ CoreManagement.GetOrganizationUnitCompany = GetOrganizationUnitCompany;
4469
4654
  /**
4470
4655
  * Gets an `OrganizationUnitSet` by its ID and returns the set's basic information.
4471
4656
  *
@@ -5059,6 +5244,48 @@ These handlers are custom build to fetch values for ProductRequirements from ext
5059
5244
  response;
5060
5245
  }
5061
5246
  CoreManagement.GetSupportedFunctionalities = GetSupportedFunctionalities;
5247
+ /**
5248
+ * Get the survey
5249
+ *
5250
+ * @export
5251
+ * @class GetSurveyByID
5252
+ * @implements {EvaService}
5253
+ */
5254
+ class GetSurveyByID {
5255
+ name = 'CoreManagement:GetSurveyByID';
5256
+ path = '/message/GetSurveyByID';
5257
+ request;
5258
+ response;
5259
+ }
5260
+ CoreManagement.GetSurveyByID = GetSurveyByID;
5261
+ /**
5262
+ * Get a question that is already answered (to navigate back and forth in the survey)
5263
+ *
5264
+ * @export
5265
+ * @class GetSurveyQuestionAnswer
5266
+ * @implements {EvaService}
5267
+ */
5268
+ class GetSurveyQuestionAnswer {
5269
+ name = 'CoreManagement:GetSurveyQuestionAnswer';
5270
+ path = '/message/GetSurveyQuestionAnswer';
5271
+ request;
5272
+ response;
5273
+ }
5274
+ CoreManagement.GetSurveyQuestionAnswer = GetSurveyQuestionAnswer;
5275
+ /**
5276
+ * Get the survey question
5277
+ *
5278
+ * @export
5279
+ * @class GetSurveyQuestionByID
5280
+ * @implements {EvaService}
5281
+ */
5282
+ class GetSurveyQuestionByID {
5283
+ name = 'CoreManagement:GetSurveyQuestionByID';
5284
+ path = '/message/GetSurveyQuestionByID';
5285
+ request;
5286
+ response;
5287
+ }
5288
+ CoreManagement.GetSurveyQuestionByID = GetSurveyQuestionByID;
5062
5289
  /**
5063
5290
  * List the UnitOfMeasures
5064
5291
  *
@@ -6636,6 +6863,8 @@ It is required to supply some OrganizationUnitIDs or some ProductIDs in the Page
6636
6863
  * List the Stock per product/stocklabel for a subset of OrganizationUnits.
6637
6864
 
6638
6865
  The page size `Limit` has a maximum value of `1.024` for this service (unless `DownloadOverview` is `true`).
6866
+
6867
+ If neither `OrganizationUnitIDs` nor `OrganizationUnitSetID` are specified, the service will return an empty result.
6639
6868
  *
6640
6869
  * @export
6641
6870
  * @class ListStockForOrganizationUnits
@@ -6720,6 +6949,34 @@ The page size `Limit` has a maximum value of `1.024` for this service (unless `D
6720
6949
  response;
6721
6950
  }
6722
6951
  CoreManagement.ListSupplierProducts = ListSupplierProducts;
6952
+ /**
6953
+ * List the survey questions
6954
+ *
6955
+ * @export
6956
+ * @class ListSurveyQuestions
6957
+ * @implements {EvaService}
6958
+ */
6959
+ class ListSurveyQuestions {
6960
+ name = 'CoreManagement:ListSurveyQuestions';
6961
+ path = '/message/ListSurveyQuestions';
6962
+ request;
6963
+ response;
6964
+ }
6965
+ CoreManagement.ListSurveyQuestions = ListSurveyQuestions;
6966
+ /**
6967
+ * List the surveys
6968
+ *
6969
+ * @export
6970
+ * @class ListSurveys
6971
+ * @implements {EvaService}
6972
+ */
6973
+ class ListSurveys {
6974
+ name = 'CoreManagement:ListSurveys';
6975
+ path = '/message/ListSurveys';
6976
+ request;
6977
+ response;
6978
+ }
6979
+ CoreManagement.ListSurveys = ListSurveys;
6723
6980
  /**
6724
6981
  * TODO: Needs documentation
6725
6982
  *
@@ -6996,6 +7253,25 @@ Also the MessageTemplate `QRCodePrintingTemplate` can be configured in Stencil.
6996
7253
  response;
6997
7254
  }
6998
7255
  CoreManagement.ProcessUnshippedPurchaseOrdersFromExcel = ProcessUnshippedPurchaseOrdersFromExcel;
7256
+ /**
7257
+ * Publishes all changes made to the survey.
7258
+
7259
+ Service will return an error when the survey is already published.
7260
+
7261
+ Survey cannot be published by the same user as the one who created / modified the survey, unless they have the right 'SurveySelfPublish'.
7262
+ The service will return an error if the same user without the right 'SurveySelfPublish' tries to publish the survey.
7263
+ *
7264
+ * @export
7265
+ * @class PublishSurvey
7266
+ * @implements {EvaService}
7267
+ */
7268
+ class PublishSurvey {
7269
+ name = 'CoreManagement:PublishSurvey';
7270
+ path = '/message/PublishSurvey';
7271
+ request;
7272
+ response;
7273
+ }
7274
+ CoreManagement.PublishSurvey = PublishSurvey;
6999
7275
  /**
7000
7276
  * Push bought products for users. Only accepts 10000 users per request
7001
7277
  *
@@ -7869,6 +8145,20 @@ Will apply all changes or no changes in case of an error
7869
8145
  response;
7870
8146
  }
7871
8147
  CoreManagement.SetSettings = SetSettings;
8148
+ /**
8149
+ * Takes in all routings of a question and sets their sequences.
8150
+ *
8151
+ * @export
8152
+ * @class SetSurveyQuestionRoutingSequences
8153
+ * @implements {EvaService}
8154
+ */
8155
+ class SetSurveyQuestionRoutingSequences {
8156
+ name = 'CoreManagement:SetSurveyQuestionRoutingSequences';
8157
+ path = '/message/SetSurveyQuestionRoutingSequences';
8158
+ request;
8159
+ response;
8160
+ }
8161
+ CoreManagement.SetSurveyQuestionRoutingSequences = SetSurveyQuestionRoutingSequences;
7872
8162
  /**
7873
8163
  * Update the Roles for an User. The roles provided will replace any existing roles on this user!
7874
8164
 
@@ -7887,6 +8177,20 @@ The UserType defines as which UserType the User will act when logging in. For em
7887
8177
  response;
7888
8178
  }
7889
8179
  CoreManagement.SetUserRoles = SetUserRoles;
8180
+ /**
8181
+ * Start a survey
8182
+ *
8183
+ * @export
8184
+ * @class StartSurvey
8185
+ * @implements {EvaService}
8186
+ */
8187
+ class StartSurvey {
8188
+ name = 'CoreManagement:StartSurvey';
8189
+ path = '/message/StartSurvey';
8190
+ request;
8191
+ response;
8192
+ }
8193
+ CoreManagement.StartSurvey = StartSurvey;
7890
8194
  /**
7891
8195
  * Unblock a users subscription.
7892
8196
  *
@@ -8551,6 +8855,20 @@ When the budget is cleared or raised above the current used budget, or `Deactiva
8551
8855
  response;
8552
8856
  }
8553
8857
  CoreManagement.UpdateOrderLedgerType = UpdateOrderLedgerType;
8858
+ /**
8859
+ * Updates the details of companies associated with the organization unit type.
8860
+ *
8861
+ * @export
8862
+ * @class UpdateOrganizationUnitCompany
8863
+ * @implements {EvaService}
8864
+ */
8865
+ class UpdateOrganizationUnitCompany {
8866
+ name = 'CoreManagement:UpdateOrganizationUnitCompany';
8867
+ path = '/message/UpdateOrganizationUnitCompany';
8868
+ request;
8869
+ response;
8870
+ }
8871
+ CoreManagement.UpdateOrganizationUnitCompany = UpdateOrganizationUnitCompany;
8554
8872
  /**
8555
8873
  * Update the Cashhandler for an additional Currency
8556
8874
  *
@@ -9166,6 +9484,50 @@ Updates the given requirements and removes all other requirements from the Subsc
9166
9484
  response;
9167
9485
  }
9168
9486
  CoreManagement.UpdateSupplierProductStock = UpdateSupplierProductStock;
9487
+ /**
9488
+ * Update a survey.
9489
+ NOTE THAT after update, the published survey will remain active and the current data will be taken into draft mode for republishing.
9490
+ After publishing you can no longer change the OrganizationUnitSetID, SurveyContext, TriggerEventType and (depending on the TriggerEventType) some of the TriggerEventData properties.
9491
+ *
9492
+ * @export
9493
+ * @class UpdateSurvey
9494
+ * @implements {EvaService}
9495
+ */
9496
+ class UpdateSurvey {
9497
+ name = 'CoreManagement:UpdateSurvey';
9498
+ path = '/message/UpdateSurvey';
9499
+ request;
9500
+ response;
9501
+ }
9502
+ CoreManagement.UpdateSurvey = UpdateSurvey;
9503
+ /**
9504
+ * Update a survey question
9505
+ *
9506
+ * @export
9507
+ * @class UpdateSurveyQuestion
9508
+ * @implements {EvaService}
9509
+ */
9510
+ class UpdateSurveyQuestion {
9511
+ name = 'CoreManagement:UpdateSurveyQuestion';
9512
+ path = '/message/UpdateSurveyQuestion';
9513
+ request;
9514
+ response;
9515
+ }
9516
+ CoreManagement.UpdateSurveyQuestion = UpdateSurveyQuestion;
9517
+ /**
9518
+ * Update a survey question route
9519
+ *
9520
+ * @export
9521
+ * @class UpdateSurveyQuestionRoute
9522
+ * @implements {EvaService}
9523
+ */
9524
+ class UpdateSurveyQuestionRoute {
9525
+ name = 'CoreManagement:UpdateSurveyQuestionRoute';
9526
+ path = '/message/UpdateSurveyQuestionRoute';
9527
+ request;
9528
+ response;
9529
+ }
9530
+ CoreManagement.UpdateSurveyQuestionRoute = UpdateSurveyQuestionRoute;
9169
9531
  /**
9170
9532
  * Update an existing UnitOfMeasure
9171
9533
  *