@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.
@@ -120,6 +120,19 @@ But if the list is a mixed product list, all updates will be applied according t
120
120
  request?: EVA.Core.Management.AddUserBoughtProductDetail;
121
121
  response?: EVA.Core.Management.UserBoughtProductResponse;
122
122
  }
123
+ /**
124
+ * Answer a survey question
125
+ *
126
+ * @export
127
+ * @class AnswerSurveyQuestion
128
+ * @implements {EvaService}
129
+ */
130
+ class AnswerSurveyQuestion implements IEvaServiceDefinition {
131
+ name: string;
132
+ path: string;
133
+ request?: EVA.Core.Management.AnswerSurveyQuestion;
134
+ response?: EVA.Core.Management.QuestionResponse;
135
+ }
123
136
  /**
124
137
  * Archive a case.
125
138
  *
@@ -950,6 +963,19 @@ When this OrganizationUnitSet doesn't have this PaymentType yet, it will be crea
950
963
  request?: EVA.Core.Management.CreateOrderLedgerType;
951
964
  response?: EVA.Core.Management.CreateOrderLedgerTypeResponse;
952
965
  }
966
+ /**
967
+ * Creates a new company associated with the organization unit type
968
+ *
969
+ * @export
970
+ * @class CreateOrganizationUnitCompany
971
+ * @implements {EvaService}
972
+ */
973
+ class CreateOrganizationUnitCompany implements IEvaServiceDefinition {
974
+ name: string;
975
+ path: string;
976
+ request?: EVA.Core.Management.CreateOrganizationUnitCompany;
977
+ response?: EVA.Core.Management.CreateOrganizationUnitCompanyResponse;
978
+ }
953
979
  /**
954
980
  * Create an organization unit country
955
981
  *
@@ -1496,6 +1522,45 @@ Name is required
1496
1522
  request?: EVA.Core.Management.CreateSupplierProduct;
1497
1523
  response?: EVA.Core.Management.CreateSupplierProductResponse;
1498
1524
  }
1525
+ /**
1526
+ * Creates a new survey
1527
+ *
1528
+ * @export
1529
+ * @class CreateSurvey
1530
+ * @implements {EvaService}
1531
+ */
1532
+ class CreateSurvey implements IEvaServiceDefinition {
1533
+ name: string;
1534
+ path: string;
1535
+ request?: EVA.Core.Management.CreateSurvey;
1536
+ response?: EVA.Core.Management.CreateSurveyResponse;
1537
+ }
1538
+ /**
1539
+ * Creates a new survey
1540
+ *
1541
+ * @export
1542
+ * @class CreateSurveyQuestion
1543
+ * @implements {EvaService}
1544
+ */
1545
+ class CreateSurveyQuestion implements IEvaServiceDefinition {
1546
+ name: string;
1547
+ path: string;
1548
+ request?: EVA.Core.Management.CreateSurveyQuestion;
1549
+ response?: EVA.Core.Management.CreateSurveyQuestionResponse;
1550
+ }
1551
+ /**
1552
+ * Creates a new survey question route
1553
+ *
1554
+ * @export
1555
+ * @class CreateSurveyQuestionRoute
1556
+ * @implements {EvaService}
1557
+ */
1558
+ class CreateSurveyQuestionRoute implements IEvaServiceDefinition {
1559
+ name: string;
1560
+ path: string;
1561
+ request?: EVA.Core.Management.CreateSurveyQuestionRoute;
1562
+ response?: EVA.Core.Management.CreateSurveyQuestionRouteResponse;
1563
+ }
1499
1564
  /**
1500
1565
  * Create a new UnitOfMeasure
1501
1566
  *
@@ -1574,6 +1639,22 @@ Name is required
1574
1639
  request?: EVA.Core.Management.CreateVisibilityGroup;
1575
1640
  response?: EVA.Core.Management.CreateVisibilityGroupResponse;
1576
1641
  }
1642
+ /**
1643
+ * Deactivates a survey.
1644
+ 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.
1645
+ It will also take the survey back into draft.
1646
+ The survey is re-enabled when a new version is published.
1647
+ *
1648
+ * @export
1649
+ * @class DeactivateSurvey
1650
+ * @implements {EvaService}
1651
+ */
1652
+ class DeactivateSurvey implements IEvaServiceDefinition {
1653
+ name: string;
1654
+ path: string;
1655
+ request?: EVA.Core.Management.DeactivateSurvey;
1656
+ response?: EVA.Core.EmptyResponseMessage;
1657
+ }
1577
1658
  /**
1578
1659
  * Delete an existing Account
1579
1660
  *
@@ -2531,6 +2612,45 @@ When it's SupplierBarcode all matching barcodes will be removed
2531
2612
  request?: EVA.Core.Management.DeleteSupplierProduct;
2532
2613
  response?: EVA.Core.EmptyResponseMessage;
2533
2614
  }
2615
+ /**
2616
+ * Update a survey
2617
+ *
2618
+ * @export
2619
+ * @class DeleteSurvey
2620
+ * @implements {EvaService}
2621
+ */
2622
+ class DeleteSurvey implements IEvaServiceDefinition {
2623
+ name: string;
2624
+ path: string;
2625
+ request?: EVA.Core.Management.DeleteSurvey;
2626
+ response?: EVA.Core.EmptyResponseMessage;
2627
+ }
2628
+ /**
2629
+ * Delete a survey question
2630
+ *
2631
+ * @export
2632
+ * @class DeleteSurveyQuestion
2633
+ * @implements {EvaService}
2634
+ */
2635
+ class DeleteSurveyQuestion implements IEvaServiceDefinition {
2636
+ name: string;
2637
+ path: string;
2638
+ request?: EVA.Core.Management.DeleteSurveyQuestion;
2639
+ response?: EVA.Core.EmptyResponseMessage;
2640
+ }
2641
+ /**
2642
+ * Delete a survey question route.
2643
+ *
2644
+ * @export
2645
+ * @class DeleteSurveyQuestionRoute
2646
+ * @implements {EvaService}
2647
+ */
2648
+ class DeleteSurveyQuestionRoute implements IEvaServiceDefinition {
2649
+ name: string;
2650
+ path: string;
2651
+ request?: EVA.Core.Management.DeleteSurveyQuestionRoute;
2652
+ response?: EVA.Core.EmptyResponseMessage;
2653
+ }
2534
2654
  /**
2535
2655
  * Delete a UnitOfMeasure
2536
2656
  *
@@ -2739,7 +2859,7 @@ File in state processing or processed can't be deleted due to generated financia
2739
2859
  name: string;
2740
2860
  path: string;
2741
2861
  request?: EVA.Core.Management.DownloadCouponExcel;
2742
- response?: EVA.Core.ResourceWithBlobIDResponseMessage;
2862
+ response?: EVA.Core.Management.DownloadCouponExcelResponse;
2743
2863
  }
2744
2864
  /**
2745
2865
  * Download template to upload an excel with coupons.
@@ -2778,7 +2898,7 @@ File in state processing or processed can't be deleted due to generated financia
2778
2898
  name: string;
2779
2899
  path: string;
2780
2900
  request?: EVA.Core.AsyncRequestResultRequest;
2781
- response?: EVA.Core.ResourceWithBlobIDResponseMessage;
2901
+ response?: EVA.Core.Management.DownloadCouponExcelResponse;
2782
2902
  }
2783
2903
  /**
2784
2904
  * Download an Excel sample which can be filled with customers. The populated excel can be uploaded through the `UploadCustomers` service.
@@ -3093,6 +3213,19 @@ A duplicated discount will not be Active and Verified.
3093
3213
  request?: EVA.Core.Management.DuplicateDiscountTemplate;
3094
3214
  response?: EVA.Core.Management.CreateDiscountTemplateResponse;
3095
3215
  }
3216
+ /**
3217
+ * Duplicate an existing MessageTemplate
3218
+ *
3219
+ * @export
3220
+ * @class DuplicateMessageTemplate
3221
+ * @implements {EvaService}
3222
+ */
3223
+ class DuplicateMessageTemplate implements IEvaServiceDefinition {
3224
+ name: string;
3225
+ path: string;
3226
+ request?: EVA.Core.Management.DuplicateMessageTemplate;
3227
+ response?: EVA.Core.Management.DuplicateMessageTemplateResponse;
3228
+ }
3096
3229
  /**
3097
3230
  * Duplicate the requirements of an existing set to a new set.
3098
3231
  *
@@ -3474,6 +3607,32 @@ If available a Description and/or DefaultValue will be returned
3474
3607
  request?: EVA.Core.Management.GetAvailableShippingMethodHandlers;
3475
3608
  response?: EVA.Core.Management.GetAvailableShippingMethodHandlersResponse;
3476
3609
  }
3610
+ /**
3611
+ * Returns available survey triggers.
3612
+ *
3613
+ * @export
3614
+ * @class GetAvailableSurveyTriggers
3615
+ * @implements {EvaService}
3616
+ */
3617
+ class GetAvailableSurveyTriggers implements IEvaServiceDefinition {
3618
+ name: string;
3619
+ path: string;
3620
+ request?: EVA.Core.Management.GetAvailableSurveyTriggers;
3621
+ response?: EVA.Core.Management.GetAvailableSurveyTriggersResponse;
3622
+ }
3623
+ /**
3624
+ * Get all available surveys for user
3625
+ *
3626
+ * @export
3627
+ * @class GetAvailableSurveys
3628
+ * @implements {EvaService}
3629
+ */
3630
+ class GetAvailableSurveys implements IEvaServiceDefinition {
3631
+ name: string;
3632
+ path: string;
3633
+ request?: EVA.Core.Management.GetAvailableSurveys;
3634
+ response?: EVA.Core.Management.GetAvailableSurveysResponse;
3635
+ }
3477
3636
  /**
3478
3637
  * Get the available UserProperties on which requirements can be set.
3479
3638
  *
@@ -4153,6 +4312,19 @@ At this moment the supported DeviceTypes are:
4153
4312
  request?: EVA.Core.Management.GetOrderLoyaltyProgramPaymentTypes;
4154
4313
  response?: EVA.Core.Management.GetOrderLoyaltyProgramPaymentTypesResponse;
4155
4314
  }
4315
+ /**
4316
+ * GetOrganizationUnitCompany
4317
+ *
4318
+ * @export
4319
+ * @class GetOrganizationUnitCompany
4320
+ * @implements {EvaService}
4321
+ */
4322
+ class GetOrganizationUnitCompany implements IEvaServiceDefinition {
4323
+ name: string;
4324
+ path: string;
4325
+ request?: EVA.Core.Management.GetOrganizationUnitCompany;
4326
+ response?: EVA.Core.Management.GetOrganizationUnitCompanyResponse;
4327
+ }
4156
4328
  /**
4157
4329
  * Gets an `OrganizationUnitSet` by its ID and returns the set's basic information.
4158
4330
  *
@@ -4704,6 +4876,45 @@ These handlers are custom build to fetch values for ProductRequirements from ext
4704
4876
  request?: EVA.Core.Management.GetSupportedFunctionalities;
4705
4877
  response?: EVA.Core.Management.GetSupportedFunctionalitiesResponse;
4706
4878
  }
4879
+ /**
4880
+ * Get the survey
4881
+ *
4882
+ * @export
4883
+ * @class GetSurveyByID
4884
+ * @implements {EvaService}
4885
+ */
4886
+ class GetSurveyByID implements IEvaServiceDefinition {
4887
+ name: string;
4888
+ path: string;
4889
+ request?: EVA.Core.Management.GetSurveyByID;
4890
+ response?: EVA.Core.Management.GetSurveyByIDResponse;
4891
+ }
4892
+ /**
4893
+ * Get a question that is already answered (to navigate back and forth in the survey)
4894
+ *
4895
+ * @export
4896
+ * @class GetSurveyQuestionAnswer
4897
+ * @implements {EvaService}
4898
+ */
4899
+ class GetSurveyQuestionAnswer implements IEvaServiceDefinition {
4900
+ name: string;
4901
+ path: string;
4902
+ request?: EVA.Core.Management.GetSurveyQuestionAnswer;
4903
+ response?: EVA.Core.Management.GetSurveyQuestionAnswerResponse;
4904
+ }
4905
+ /**
4906
+ * Get the survey question
4907
+ *
4908
+ * @export
4909
+ * @class GetSurveyQuestionByID
4910
+ * @implements {EvaService}
4911
+ */
4912
+ class GetSurveyQuestionByID implements IEvaServiceDefinition {
4913
+ name: string;
4914
+ path: string;
4915
+ request?: EVA.Core.Management.GetSurveyQuestionByID;
4916
+ response?: EVA.Core.Management.GetSurveyQuestionByIDResponse;
4917
+ }
4707
4918
  /**
4708
4919
  * List the UnitOfMeasures
4709
4920
  *
@@ -6173,6 +6384,8 @@ It is required to supply some OrganizationUnitIDs or some ProductIDs in the Page
6173
6384
  * List the Stock per product/stocklabel for a subset of OrganizationUnits.
6174
6385
 
6175
6386
  The page size `Limit` has a maximum value of `1.024` for this service (unless `DownloadOverview` is `true`).
6387
+
6388
+ If neither `OrganizationUnitIDs` nor `OrganizationUnitSetID` are specified, the service will return an empty result.
6176
6389
  *
6177
6390
  * @export
6178
6391
  * @class ListStockForOrganizationUnits
@@ -6251,6 +6464,32 @@ The page size `Limit` has a maximum value of `1.024` for this service (unless `D
6251
6464
  request?: EVA.Core.Management.ListSupplierProducts;
6252
6465
  response?: EVA.Core.Management.ListSupplierProductsResponse;
6253
6466
  }
6467
+ /**
6468
+ * List the survey questions
6469
+ *
6470
+ * @export
6471
+ * @class ListSurveyQuestions
6472
+ * @implements {EvaService}
6473
+ */
6474
+ class ListSurveyQuestions implements IEvaServiceDefinition {
6475
+ name: string;
6476
+ path: string;
6477
+ request?: EVA.Core.Management.ListSurveyQuestions;
6478
+ response?: EVA.Core.Management.ListSurveyQuestionsResponse;
6479
+ }
6480
+ /**
6481
+ * List the surveys
6482
+ *
6483
+ * @export
6484
+ * @class ListSurveys
6485
+ * @implements {EvaService}
6486
+ */
6487
+ class ListSurveys implements IEvaServiceDefinition {
6488
+ name: string;
6489
+ path: string;
6490
+ request?: EVA.Core.Management.ListSurveys;
6491
+ response?: EVA.Core.Management.ListSurveysResponse;
6492
+ }
6254
6493
  /**
6255
6494
  * TODO: Needs documentation
6256
6495
  *
@@ -6509,6 +6748,24 @@ Also the MessageTemplate `QRCodePrintingTemplate` can be configured in Stencil.
6509
6748
  request?: EVA.Core.Management.ProcessUnshippedPurchaseOrdersFromExcel;
6510
6749
  response?: EVA.Core.EmptyResponseMessage;
6511
6750
  }
6751
+ /**
6752
+ * Publishes all changes made to the survey.
6753
+
6754
+ Service will return an error when the survey is already published.
6755
+
6756
+ Survey cannot be published by the same user as the one who created / modified the survey, unless they have the right 'SurveySelfPublish'.
6757
+ The service will return an error if the same user without the right 'SurveySelfPublish' tries to publish the survey.
6758
+ *
6759
+ * @export
6760
+ * @class PublishSurvey
6761
+ * @implements {EvaService}
6762
+ */
6763
+ class PublishSurvey implements IEvaServiceDefinition {
6764
+ name: string;
6765
+ path: string;
6766
+ request?: EVA.Core.Management.PublishSurvey;
6767
+ response?: EVA.Core.EmptyResponseMessage;
6768
+ }
6512
6769
  /**
6513
6770
  * Push bought products for users. Only accepts 10000 users per request
6514
6771
  *
@@ -7326,6 +7583,19 @@ Will apply all changes or no changes in case of an error
7326
7583
  request?: EVA.Core.Management.SetSettings;
7327
7584
  response?: EVA.Core.EmptyResponseMessage;
7328
7585
  }
7586
+ /**
7587
+ * Takes in all routings of a question and sets their sequences.
7588
+ *
7589
+ * @export
7590
+ * @class SetSurveyQuestionRoutingSequences
7591
+ * @implements {EvaService}
7592
+ */
7593
+ class SetSurveyQuestionRoutingSequences implements IEvaServiceDefinition {
7594
+ name: string;
7595
+ path: string;
7596
+ request?: EVA.Core.Management.SetSurveyQuestionRoutingSequences;
7597
+ response?: EVA.Core.EmptyResponseMessage;
7598
+ }
7329
7599
  /**
7330
7600
  * Update the Roles for an User. The roles provided will replace any existing roles on this user!
7331
7601
 
@@ -7343,6 +7613,19 @@ The UserType defines as which UserType the User will act when logging in. For em
7343
7613
  request?: EVA.Core.Management.SetUserRoles;
7344
7614
  response?: EVA.Core.EmptyResponseMessage;
7345
7615
  }
7616
+ /**
7617
+ * Start a survey
7618
+ *
7619
+ * @export
7620
+ * @class StartSurvey
7621
+ * @implements {EvaService}
7622
+ */
7623
+ class StartSurvey implements IEvaServiceDefinition {
7624
+ name: string;
7625
+ path: string;
7626
+ request?: EVA.Core.Management.StartSurvey;
7627
+ response?: EVA.Core.Management.StartSurveyResponse;
7628
+ }
7346
7629
  /**
7347
7630
  * Unblock a users subscription.
7348
7631
  *
@@ -7961,6 +8244,19 @@ When the budget is cleared or raised above the current used budget, or `Deactiva
7961
8244
  request?: EVA.Core.Management.UpdateOrderLedgerType;
7962
8245
  response?: EVA.Core.Management.UpdateOrderLedgerTypeResponse;
7963
8246
  }
8247
+ /**
8248
+ * Updates the details of companies associated with the organization unit type.
8249
+ *
8250
+ * @export
8251
+ * @class UpdateOrganizationUnitCompany
8252
+ * @implements {EvaService}
8253
+ */
8254
+ class UpdateOrganizationUnitCompany implements IEvaServiceDefinition {
8255
+ name: string;
8256
+ path: string;
8257
+ request?: EVA.Core.Management.UpdateOrganizationUnitCompany;
8258
+ response?: EVA.Core.EmptyResponseMessage;
8259
+ }
7964
8260
  /**
7965
8261
  * Update the Cashhandler for an additional Currency
7966
8262
  *
@@ -8535,6 +8831,47 @@ Updates the given requirements and removes all other requirements from the Subsc
8535
8831
  request?: EVA.Core.Management.UpdateSupplierProductStock;
8536
8832
  response?: EVA.Core.EmptyResponseMessage;
8537
8833
  }
8834
+ /**
8835
+ * Update a survey.
8836
+ NOTE THAT after update, the published survey will remain active and the current data will be taken into draft mode for republishing.
8837
+ After publishing you can no longer change the OrganizationUnitSetID, SurveyContext, TriggerEventType and (depending on the TriggerEventType) some of the TriggerEventData properties.
8838
+ *
8839
+ * @export
8840
+ * @class UpdateSurvey
8841
+ * @implements {EvaService}
8842
+ */
8843
+ class UpdateSurvey implements IEvaServiceDefinition {
8844
+ name: string;
8845
+ path: string;
8846
+ request?: EVA.Core.Management.UpdateSurvey;
8847
+ response?: EVA.Core.EmptyResponseMessage;
8848
+ }
8849
+ /**
8850
+ * Update a survey question
8851
+ *
8852
+ * @export
8853
+ * @class UpdateSurveyQuestion
8854
+ * @implements {EvaService}
8855
+ */
8856
+ class UpdateSurveyQuestion implements IEvaServiceDefinition {
8857
+ name: string;
8858
+ path: string;
8859
+ request?: EVA.Core.Management.UpdateSurveyQuestion;
8860
+ response?: EVA.Core.EmptyResponseMessage;
8861
+ }
8862
+ /**
8863
+ * Update a survey question route
8864
+ *
8865
+ * @export
8866
+ * @class UpdateSurveyQuestionRoute
8867
+ * @implements {EvaService}
8868
+ */
8869
+ class UpdateSurveyQuestionRoute implements IEvaServiceDefinition {
8870
+ name: string;
8871
+ path: string;
8872
+ request?: EVA.Core.Management.UpdateSurveyQuestionRoute;
8873
+ response?: EVA.Core.EmptyResponseMessage;
8874
+ }
8538
8875
  /**
8539
8876
  * Update an existing UnitOfMeasure
8540
8877
  *