@springtree/eva-services-core-management 2.21.0 → 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.
@@ -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
  *
@@ -1496,6 +1509,45 @@ Name is required
1496
1509
  request?: EVA.Core.Management.CreateSupplierProduct;
1497
1510
  response?: EVA.Core.Management.CreateSupplierProductResponse;
1498
1511
  }
1512
+ /**
1513
+ * Creates a new survey
1514
+ *
1515
+ * @export
1516
+ * @class CreateSurvey
1517
+ * @implements {EvaService}
1518
+ */
1519
+ class CreateSurvey implements IEvaServiceDefinition {
1520
+ name: string;
1521
+ path: string;
1522
+ request?: EVA.Core.Management.CreateSurvey;
1523
+ response?: EVA.Core.Management.CreateSurveyResponse;
1524
+ }
1525
+ /**
1526
+ * Creates a new survey
1527
+ *
1528
+ * @export
1529
+ * @class CreateSurveyQuestion
1530
+ * @implements {EvaService}
1531
+ */
1532
+ class CreateSurveyQuestion implements IEvaServiceDefinition {
1533
+ name: string;
1534
+ path: string;
1535
+ request?: EVA.Core.Management.CreateSurveyQuestion;
1536
+ response?: EVA.Core.Management.CreateSurveyQuestionResponse;
1537
+ }
1538
+ /**
1539
+ * Creates a new survey question route
1540
+ *
1541
+ * @export
1542
+ * @class CreateSurveyQuestionRoute
1543
+ * @implements {EvaService}
1544
+ */
1545
+ class CreateSurveyQuestionRoute implements IEvaServiceDefinition {
1546
+ name: string;
1547
+ path: string;
1548
+ request?: EVA.Core.Management.CreateSurveyQuestionRoute;
1549
+ response?: EVA.Core.Management.CreateSurveyQuestionRouteResponse;
1550
+ }
1499
1551
  /**
1500
1552
  * Create a new UnitOfMeasure
1501
1553
  *
@@ -1574,6 +1626,22 @@ Name is required
1574
1626
  request?: EVA.Core.Management.CreateVisibilityGroup;
1575
1627
  response?: EVA.Core.Management.CreateVisibilityGroupResponse;
1576
1628
  }
1629
+ /**
1630
+ * Deactivates a survey.
1631
+ 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.
1632
+ It will also take the survey back into draft.
1633
+ The survey is re-enabled when a new version is published.
1634
+ *
1635
+ * @export
1636
+ * @class DeactivateSurvey
1637
+ * @implements {EvaService}
1638
+ */
1639
+ class DeactivateSurvey implements IEvaServiceDefinition {
1640
+ name: string;
1641
+ path: string;
1642
+ request?: EVA.Core.Management.DeactivateSurvey;
1643
+ response?: EVA.Core.EmptyResponseMessage;
1644
+ }
1577
1645
  /**
1578
1646
  * Delete an existing Account
1579
1647
  *
@@ -2531,6 +2599,45 @@ When it's SupplierBarcode all matching barcodes will be removed
2531
2599
  request?: EVA.Core.Management.DeleteSupplierProduct;
2532
2600
  response?: EVA.Core.EmptyResponseMessage;
2533
2601
  }
2602
+ /**
2603
+ * Update a survey
2604
+ *
2605
+ * @export
2606
+ * @class DeleteSurvey
2607
+ * @implements {EvaService}
2608
+ */
2609
+ class DeleteSurvey implements IEvaServiceDefinition {
2610
+ name: string;
2611
+ path: string;
2612
+ request?: EVA.Core.Management.DeleteSurvey;
2613
+ response?: EVA.Core.EmptyResponseMessage;
2614
+ }
2615
+ /**
2616
+ * Delete a survey question
2617
+ *
2618
+ * @export
2619
+ * @class DeleteSurveyQuestion
2620
+ * @implements {EvaService}
2621
+ */
2622
+ class DeleteSurveyQuestion implements IEvaServiceDefinition {
2623
+ name: string;
2624
+ path: string;
2625
+ request?: EVA.Core.Management.DeleteSurveyQuestion;
2626
+ response?: EVA.Core.EmptyResponseMessage;
2627
+ }
2628
+ /**
2629
+ * Delete a survey question route.
2630
+ *
2631
+ * @export
2632
+ * @class DeleteSurveyQuestionRoute
2633
+ * @implements {EvaService}
2634
+ */
2635
+ class DeleteSurveyQuestionRoute implements IEvaServiceDefinition {
2636
+ name: string;
2637
+ path: string;
2638
+ request?: EVA.Core.Management.DeleteSurveyQuestionRoute;
2639
+ response?: EVA.Core.EmptyResponseMessage;
2640
+ }
2534
2641
  /**
2535
2642
  * Delete a UnitOfMeasure
2536
2643
  *
@@ -2739,7 +2846,7 @@ File in state processing or processed can't be deleted due to generated financia
2739
2846
  name: string;
2740
2847
  path: string;
2741
2848
  request?: EVA.Core.Management.DownloadCouponExcel;
2742
- response?: EVA.Core.ResourceWithBlobIDResponseMessage;
2849
+ response?: EVA.Core.Management.DownloadCouponExcelResponse;
2743
2850
  }
2744
2851
  /**
2745
2852
  * Download template to upload an excel with coupons.
@@ -2778,7 +2885,7 @@ File in state processing or processed can't be deleted due to generated financia
2778
2885
  name: string;
2779
2886
  path: string;
2780
2887
  request?: EVA.Core.AsyncRequestResultRequest;
2781
- response?: EVA.Core.ResourceWithBlobIDResponseMessage;
2888
+ response?: EVA.Core.Management.DownloadCouponExcelResponse;
2782
2889
  }
2783
2890
  /**
2784
2891
  * Download an Excel sample which can be filled with customers. The populated excel can be uploaded through the `UploadCustomers` service.
@@ -3474,6 +3581,32 @@ If available a Description and/or DefaultValue will be returned
3474
3581
  request?: EVA.Core.Management.GetAvailableShippingMethodHandlers;
3475
3582
  response?: EVA.Core.Management.GetAvailableShippingMethodHandlersResponse;
3476
3583
  }
3584
+ /**
3585
+ * Returns available survey triggers.
3586
+ *
3587
+ * @export
3588
+ * @class GetAvailableSurveyTriggers
3589
+ * @implements {EvaService}
3590
+ */
3591
+ class GetAvailableSurveyTriggers implements IEvaServiceDefinition {
3592
+ name: string;
3593
+ path: string;
3594
+ request?: EVA.Core.Management.GetAvailableSurveyTriggers;
3595
+ response?: EVA.Core.Management.GetAvailableSurveyTriggersResponse;
3596
+ }
3597
+ /**
3598
+ * Get all available surveys for user
3599
+ *
3600
+ * @export
3601
+ * @class GetAvailableSurveys
3602
+ * @implements {EvaService}
3603
+ */
3604
+ class GetAvailableSurveys implements IEvaServiceDefinition {
3605
+ name: string;
3606
+ path: string;
3607
+ request?: EVA.Core.Management.GetAvailableSurveys;
3608
+ response?: EVA.Core.Management.GetAvailableSurveysResponse;
3609
+ }
3477
3610
  /**
3478
3611
  * Get the available UserProperties on which requirements can be set.
3479
3612
  *
@@ -4704,6 +4837,45 @@ These handlers are custom build to fetch values for ProductRequirements from ext
4704
4837
  request?: EVA.Core.Management.GetSupportedFunctionalities;
4705
4838
  response?: EVA.Core.Management.GetSupportedFunctionalitiesResponse;
4706
4839
  }
4840
+ /**
4841
+ * Get the survey
4842
+ *
4843
+ * @export
4844
+ * @class GetSurveyByID
4845
+ * @implements {EvaService}
4846
+ */
4847
+ class GetSurveyByID implements IEvaServiceDefinition {
4848
+ name: string;
4849
+ path: string;
4850
+ request?: EVA.Core.Management.GetSurveyByID;
4851
+ response?: EVA.Core.Management.GetSurveyByIDResponse;
4852
+ }
4853
+ /**
4854
+ * Get a question that is already answered (to navigate back and forth in the survey)
4855
+ *
4856
+ * @export
4857
+ * @class GetSurveyQuestionAnswer
4858
+ * @implements {EvaService}
4859
+ */
4860
+ class GetSurveyQuestionAnswer implements IEvaServiceDefinition {
4861
+ name: string;
4862
+ path: string;
4863
+ request?: EVA.Core.Management.GetSurveyQuestionAnswer;
4864
+ response?: EVA.Core.Management.GetSurveyQuestionAnswerResponse;
4865
+ }
4866
+ /**
4867
+ * Get the survey question
4868
+ *
4869
+ * @export
4870
+ * @class GetSurveyQuestionByID
4871
+ * @implements {EvaService}
4872
+ */
4873
+ class GetSurveyQuestionByID implements IEvaServiceDefinition {
4874
+ name: string;
4875
+ path: string;
4876
+ request?: EVA.Core.Management.GetSurveyQuestionByID;
4877
+ response?: EVA.Core.Management.GetSurveyQuestionByIDResponse;
4878
+ }
4707
4879
  /**
4708
4880
  * List the UnitOfMeasures
4709
4881
  *
@@ -6173,6 +6345,8 @@ It is required to supply some OrganizationUnitIDs or some ProductIDs in the Page
6173
6345
  * List the Stock per product/stocklabel for a subset of OrganizationUnits.
6174
6346
 
6175
6347
  The page size `Limit` has a maximum value of `1.024` for this service (unless `DownloadOverview` is `true`).
6348
+
6349
+ If neither `OrganizationUnitIDs` nor `OrganizationUnitSetID` are specified, the service will return an empty result.
6176
6350
  *
6177
6351
  * @export
6178
6352
  * @class ListStockForOrganizationUnits
@@ -6251,6 +6425,32 @@ The page size `Limit` has a maximum value of `1.024` for this service (unless `D
6251
6425
  request?: EVA.Core.Management.ListSupplierProducts;
6252
6426
  response?: EVA.Core.Management.ListSupplierProductsResponse;
6253
6427
  }
6428
+ /**
6429
+ * List the survey questions
6430
+ *
6431
+ * @export
6432
+ * @class ListSurveyQuestions
6433
+ * @implements {EvaService}
6434
+ */
6435
+ class ListSurveyQuestions implements IEvaServiceDefinition {
6436
+ name: string;
6437
+ path: string;
6438
+ request?: EVA.Core.Management.ListSurveyQuestions;
6439
+ response?: EVA.Core.Management.ListSurveyQuestionsResponse;
6440
+ }
6441
+ /**
6442
+ * List the surveys
6443
+ *
6444
+ * @export
6445
+ * @class ListSurveys
6446
+ * @implements {EvaService}
6447
+ */
6448
+ class ListSurveys implements IEvaServiceDefinition {
6449
+ name: string;
6450
+ path: string;
6451
+ request?: EVA.Core.Management.ListSurveys;
6452
+ response?: EVA.Core.Management.ListSurveysResponse;
6453
+ }
6254
6454
  /**
6255
6455
  * TODO: Needs documentation
6256
6456
  *
@@ -6509,6 +6709,24 @@ Also the MessageTemplate `QRCodePrintingTemplate` can be configured in Stencil.
6509
6709
  request?: EVA.Core.Management.ProcessUnshippedPurchaseOrdersFromExcel;
6510
6710
  response?: EVA.Core.EmptyResponseMessage;
6511
6711
  }
6712
+ /**
6713
+ * Publishes all changes made to the survey.
6714
+
6715
+ Service will return an error when the survey is already published.
6716
+
6717
+ Survey cannot be published by the same user as the one who created / modified the survey, unless they have the right 'SurveySelfPublish'.
6718
+ The service will return an error if the same user without the right 'SurveySelfPublish' tries to publish the survey.
6719
+ *
6720
+ * @export
6721
+ * @class PublishSurvey
6722
+ * @implements {EvaService}
6723
+ */
6724
+ class PublishSurvey implements IEvaServiceDefinition {
6725
+ name: string;
6726
+ path: string;
6727
+ request?: EVA.Core.Management.PublishSurvey;
6728
+ response?: EVA.Core.EmptyResponseMessage;
6729
+ }
6512
6730
  /**
6513
6731
  * Push bought products for users. Only accepts 10000 users per request
6514
6732
  *
@@ -7326,6 +7544,19 @@ Will apply all changes or no changes in case of an error
7326
7544
  request?: EVA.Core.Management.SetSettings;
7327
7545
  response?: EVA.Core.EmptyResponseMessage;
7328
7546
  }
7547
+ /**
7548
+ * Takes in all routings of a question and sets their sequences.
7549
+ *
7550
+ * @export
7551
+ * @class SetSurveyQuestionRoutingSequences
7552
+ * @implements {EvaService}
7553
+ */
7554
+ class SetSurveyQuestionRoutingSequences implements IEvaServiceDefinition {
7555
+ name: string;
7556
+ path: string;
7557
+ request?: EVA.Core.Management.SetSurveyQuestionRoutingSequences;
7558
+ response?: EVA.Core.EmptyResponseMessage;
7559
+ }
7329
7560
  /**
7330
7561
  * Update the Roles for an User. The roles provided will replace any existing roles on this user!
7331
7562
 
@@ -7343,6 +7574,19 @@ The UserType defines as which UserType the User will act when logging in. For em
7343
7574
  request?: EVA.Core.Management.SetUserRoles;
7344
7575
  response?: EVA.Core.EmptyResponseMessage;
7345
7576
  }
7577
+ /**
7578
+ * Start a survey
7579
+ *
7580
+ * @export
7581
+ * @class StartSurvey
7582
+ * @implements {EvaService}
7583
+ */
7584
+ class StartSurvey implements IEvaServiceDefinition {
7585
+ name: string;
7586
+ path: string;
7587
+ request?: EVA.Core.Management.StartSurvey;
7588
+ response?: EVA.Core.Management.StartSurveyResponse;
7589
+ }
7346
7590
  /**
7347
7591
  * Unblock a users subscription.
7348
7592
  *
@@ -8535,6 +8779,47 @@ Updates the given requirements and removes all other requirements from the Subsc
8535
8779
  request?: EVA.Core.Management.UpdateSupplierProductStock;
8536
8780
  response?: EVA.Core.EmptyResponseMessage;
8537
8781
  }
8782
+ /**
8783
+ * Update a survey.
8784
+ NOTE THAT after update, the published survey will remain active and the current data will be taken into draft mode for republishing.
8785
+ After publishing you can no longer change the OrganizationUnitSetID, SurveyContext, TriggerEventType and (depending on the TriggerEventType) some of the TriggerEventData properties.
8786
+ *
8787
+ * @export
8788
+ * @class UpdateSurvey
8789
+ * @implements {EvaService}
8790
+ */
8791
+ class UpdateSurvey implements IEvaServiceDefinition {
8792
+ name: string;
8793
+ path: string;
8794
+ request?: EVA.Core.Management.UpdateSurvey;
8795
+ response?: EVA.Core.EmptyResponseMessage;
8796
+ }
8797
+ /**
8798
+ * Update a survey question
8799
+ *
8800
+ * @export
8801
+ * @class UpdateSurveyQuestion
8802
+ * @implements {EvaService}
8803
+ */
8804
+ class UpdateSurveyQuestion implements IEvaServiceDefinition {
8805
+ name: string;
8806
+ path: string;
8807
+ request?: EVA.Core.Management.UpdateSurveyQuestion;
8808
+ response?: EVA.Core.EmptyResponseMessage;
8809
+ }
8810
+ /**
8811
+ * Update a survey question route
8812
+ *
8813
+ * @export
8814
+ * @class UpdateSurveyQuestionRoute
8815
+ * @implements {EvaService}
8816
+ */
8817
+ class UpdateSurveyQuestionRoute implements IEvaServiceDefinition {
8818
+ name: string;
8819
+ path: string;
8820
+ request?: EVA.Core.Management.UpdateSurveyQuestionRoute;
8821
+ response?: EVA.Core.EmptyResponseMessage;
8822
+ }
8538
8823
  /**
8539
8824
  * Update an existing UnitOfMeasure
8540
8825
  *