@producerflow/producerflowapi 0.0.12 → 0.0.14
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.
|
@@ -186,16 +186,7 @@ export declare const TerminateAppointmentRequestSchema: GenMessage<TerminateAppo
|
|
|
186
186
|
*/
|
|
187
187
|
export type TerminateAppointmentResponse = Message<"producerflow.appointment.v1.TerminateAppointmentResponse"> & {
|
|
188
188
|
/**
|
|
189
|
-
* Indicates whether the termination request was successfully processed.
|
|
190
|
-
*
|
|
191
|
-
* For NIPR-integrated carriers: Indicates whether the termination request was
|
|
192
|
-
* successfully submitted to NIPR. This does not indicate that the appointment
|
|
193
|
-
* has been terminated, only that the request has been accepted for processing.
|
|
194
|
-
* The actual termination will be processed asynchronously by NIPR, and you
|
|
195
|
-
* will be notified via webhook when the process completes.
|
|
196
|
-
*
|
|
197
|
-
* For registry states or non-NIPR carriers: Indicates whether the termination
|
|
198
|
-
* was successfully completed immediately.
|
|
189
|
+
* Indicates whether the termination request was successfully processed. For NIPR-integrated carriers: Indicates whether the termination request was successfully submitted to NIPR. This does not indicate that the appointment has been terminated, only that the request has been accepted for processing. The actual termination will be processed asynchronously by NIPR, and you will be notified via webhook when the process completes. For registry states or non-NIPR carriers: Indicates whether the termination was successfully completed immediately.
|
|
199
190
|
*
|
|
200
191
|
* @generated from field: bool success = 1;
|
|
201
192
|
*/
|
|
@@ -770,12 +761,7 @@ export declare enum AppointmentType {
|
|
|
770
761
|
*/
|
|
771
762
|
export declare const AppointmentTypeSchema: GenEnum<AppointmentType>;
|
|
772
763
|
/**
|
|
773
|
-
* TerminationReason represents the reason for the termination of an appointment.
|
|
774
|
-
* These reasons correspond to NIPR's valid termination codes and vary by state.
|
|
775
|
-
* Use ListTerminationReasons to get the valid reasons for a specific state
|
|
776
|
-
* before terminating an appointment.
|
|
777
|
-
*
|
|
778
|
-
* Reference: https://pdb.nipr.com/Gateway/ValidTerms
|
|
764
|
+
* TerminationReason represents the reason for the termination of an appointment. These reasons correspond to NIPR's valid termination codes and vary by state. Use ListTerminationReasons to get the valid reasons for a specific state before terminating an appointment. Reference: https://pdb.nipr.com/Gateway/ValidTerms
|
|
779
765
|
*
|
|
780
766
|
* @generated from enum producerflow.appointment.v1.TerminationReason
|
|
781
767
|
*/
|
|
@@ -850,26 +836,11 @@ export declare enum TerminationReason {
|
|
|
850
836
|
*/
|
|
851
837
|
export declare const TerminationReasonSchema: GenEnum<TerminationReason>;
|
|
852
838
|
/**
|
|
853
|
-
* AppointmentService manages license appointments through NIPR.
|
|
854
|
-
*
|
|
855
|
-
* The appointment flow in NIPR is as follows:
|
|
856
|
-
* 1. A new appointment (or termination) is requested for a license number.
|
|
857
|
-
* 2. Some time later, NIPR processes the request and returns the final result.
|
|
858
|
-
*
|
|
859
|
-
* Since NIPR does not return results immediately, RequestAppointment and TerminateAppointment
|
|
860
|
-
* RPCs will return a processing status of IN_PROGRESS if the request is accepted by NIPR.
|
|
861
|
-
* When the appointment is finally processed by NIPR, ProducerFlow will notify via a webhook of
|
|
862
|
-
* the final result. Also, any call from this point on to ListAppointments or GetAppointment will
|
|
863
|
-
* also return the final result.
|
|
839
|
+
* AppointmentService manages license appointments through NIPR. The appointment flow in NIPR is as follows: 1. A new appointment (or termination) is requested for a license number. 2. Some time later, NIPR processes the request and returns the final result. Since NIPR does not return results immediately, RequestAppointment and TerminateAppointment RPCs will return a processing status of IN_PROGRESS if the request is accepted by NIPR. When the appointment is finally processed by NIPR, ProducerFlow will notify via a webhook of the final result. Also, any call from this point on to ListAppointments or GetAppointment will also return the final result. IMPORTANT: Appointments in registry states or with capacity carriers (carriers that do not have NIPR integration) are processed automatically without going through NIPR. In these cases: RequestAppointment will immediately return APPOINTED status. TerminateAppointment will immediately return TERMINATED status. Any call to this service must be authenticated using an API key in the request headers. The API key can be found in the ProducerFlow API key section of the ProducerFlow UI and it identifies the tenant that is making the request.
|
|
864
840
|
*
|
|
865
|
-
*
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
* - TerminateAppointment will immediately return TERMINATED status
|
|
869
|
-
*
|
|
870
|
-
* Any call to this service must be authenticated using an API key in the request headers. The API key
|
|
871
|
-
* can be found in the ProducerFlow API key section of the ProducerFlow UI and it identifies the tenant
|
|
872
|
-
* that is making the request.
|
|
841
|
+
* Available endpoints:
|
|
842
|
+
* UAT (User Acceptance Testing): https://api.uat.producerflow.com
|
|
843
|
+
* Production: https://api.producerflow.com
|
|
873
844
|
*
|
|
874
845
|
* @generated from service producerflow.appointment.v1.AppointmentService
|
|
875
846
|
*/
|
|
@@ -937,20 +908,7 @@ export declare const AppointmentService: GenService<{
|
|
|
937
908
|
output: typeof ListEligibleLicensesResponseSchema;
|
|
938
909
|
};
|
|
939
910
|
/**
|
|
940
|
-
* Requests a new appointment for a license that is eligible to be appointed. The simpler way
|
|
941
|
-
* to do this is to call ListEligibleLicenses to get a list of licenses that are eligible to be
|
|
942
|
-
* appointed. Then, call RequestAppointment for the licenses in the list that you want to appoint.
|
|
943
|
-
*
|
|
944
|
-
* Processing behavior varies based on the license state and carrier NIPR integration:
|
|
945
|
-
*
|
|
946
|
-
* For NIPR-integrated carriers in non-registry states:
|
|
947
|
-
* - If the request is accepted by NIPR, the appointment will have IN_PROGRESS processing status
|
|
948
|
-
* - If rejected, it will have REJECTED status and reasons will be provided in not_eligible_reasons
|
|
949
|
-
* - Final result will be delivered via webhook when NIPR completes processing
|
|
950
|
-
*
|
|
951
|
-
* For registry states or capacity carriers (carriers without NIPR integration):
|
|
952
|
-
* - The appointment is processed automatically and immediately
|
|
953
|
-
* - Returns APPOINTED status immediately upon successful processing
|
|
911
|
+
* Requests a new appointment for a license that is eligible to be appointed. The simpler way to do this is to call ListEligibleLicenses to get a list of licenses that are eligible to be appointed. Then, call RequestAppointment for the licenses in the list that you want to appoint. Processing behavior varies based on the license state and carrier NIPR integration: For NIPR-integrated carriers in non-registry states: If the request is accepted by NIPR, the appointment will have IN_PROGRESS processing status. If rejected, it will have REJECTED status and reasons will be provided in not_eligible_reasons. Final result will be delivered via webhook when NIPR completes processing. For registry states or capacity carriers (carriers without NIPR integration): The appointment is processed automatically and immediately. Returns APPOINTED status immediately upon successful processing.
|
|
954
912
|
*
|
|
955
913
|
* @generated from rpc producerflow.appointment.v1.AppointmentService.RequestAppointment
|
|
956
914
|
*/
|
|
@@ -960,33 +918,7 @@ export declare const AppointmentService: GenService<{
|
|
|
960
918
|
output: typeof RequestAppointmentResponseSchema;
|
|
961
919
|
};
|
|
962
920
|
/**
|
|
963
|
-
* Terminates an existing appointment, permanently ending the relationship between
|
|
964
|
-
* the license holder and the carrier.
|
|
965
|
-
*
|
|
966
|
-
* Before calling this method, you must:
|
|
967
|
-
* 1. Ensure the appointment exists and is in APPOINTED status
|
|
968
|
-
* 2. Call ListTerminationReasons to get valid termination reasons for the license's state
|
|
969
|
-
* 3. Select an appropriate termination reason from the state-specific list
|
|
970
|
-
*
|
|
971
|
-
* Processing behavior varies based on the license state and carrier NIPR integration:
|
|
972
|
-
*
|
|
973
|
-
* For NIPR-integrated carriers in non-registry states:
|
|
974
|
-
* - The request is submitted to NIPR for processing
|
|
975
|
-
* - Once NIPR completes processing, the status becomes TERMINATED
|
|
976
|
-
* - If rejected by NIPR, the appointment remains in its current status
|
|
977
|
-
* - You will receive webhook notifications when the termination is processed by NIPR
|
|
978
|
-
*
|
|
979
|
-
* For registry states or capacity carriers (carriers without NIPR integration):
|
|
980
|
-
* - The termination is processed automatically and immediately
|
|
981
|
-
* - Returns TERMINATED status immediately upon successful processing
|
|
982
|
-
*
|
|
983
|
-
* Important considerations:
|
|
984
|
-
* - Termination is permanent and cannot be undone
|
|
985
|
-
* - Termination reasons must be valid for the specific state where the license is issued
|
|
986
|
-
* - Some terminations may incur fees (check GetTerminationFees first)
|
|
987
|
-
*
|
|
988
|
-
* The response indicates whether the termination request was successfully submitted,
|
|
989
|
-
* not whether the actual termination was completed (since NIPR processes asynchronously).
|
|
921
|
+
* Terminates an existing appointment, permanently ending the relationship between the license holder and the carrier. Before calling this method, you must: 1. Ensure the appointment exists and is in APPOINTED status. 2. Call ListTerminationReasons to get valid termination reasons for the license's state. 3. Select an appropriate termination reason from the state-specific list. Processing behavior varies based on the license state and carrier NIPR integration: For NIPR-integrated carriers in non-registry states: The request is submitted to NIPR for processing. Once NIPR completes processing, the status becomes TERMINATED. If rejected by NIPR, the appointment remains in its current status. You will receive webhook notifications when the termination is processed by NIPR. For registry states or capacity carriers (carriers without NIPR integration): The termination is processed automatically and immediately. Returns TERMINATED status immediately upon successful processing. Important considerations: Termination is permanent and cannot be undone. Termination reasons must be valid for the specific state where the license is issued. Some terminations may incur fees (check GetTerminationFees first). The response indicates whether the termination request was successfully submitted, not whether the actual termination was completed (since NIPR processes asynchronously).
|
|
990
922
|
*
|
|
991
923
|
* @generated from rpc producerflow.appointment.v1.AppointmentService.TerminateAppointment
|
|
992
924
|
*/
|
|
@@ -996,17 +928,7 @@ export declare const AppointmentService: GenService<{
|
|
|
996
928
|
output: typeof TerminateAppointmentResponseSchema;
|
|
997
929
|
};
|
|
998
930
|
/**
|
|
999
|
-
* Lists the valid termination reasons for appointments in a specific state.
|
|
1000
|
-
*
|
|
1001
|
-
* When terminating an appointment, you must provide a valid termination reason that is
|
|
1002
|
-
* accepted by NIPR for the state where the license is issued. Termination reasons vary
|
|
1003
|
-
* by state, so you should call this method first to retrieve the list of valid reasons
|
|
1004
|
-
* before calling TerminateAppointment.
|
|
1005
|
-
*
|
|
1006
|
-
* The termination reasons returned are based on NIPR's valid termination codes for the
|
|
1007
|
-
* specified state. Each reason corresponds to a specific business scenario for why an
|
|
1008
|
-
* appointment might be terminated (e.g., voluntary termination, inadequate production,
|
|
1009
|
-
* company merger, etc.).
|
|
931
|
+
* Lists the valid termination reasons for appointments in a specific state. When terminating an appointment, you must provide a valid termination reason that is accepted by NIPR for the state where the license is issued. Termination reasons vary by state, so you should call this method first to retrieve the list of valid reasons before calling TerminateAppointment. The termination reasons returned are based on NIPR's valid termination codes for the specified state. Each reason corresponds to a specific business scenario for why an appointment might be terminated (e.g., voluntary termination, inadequate production, company merger, etc.).
|
|
1010
932
|
*
|
|
1011
933
|
* @generated from rpc producerflow.appointment.v1.AppointmentService.ListTerminationReasons
|
|
1012
934
|
*/
|
|
@@ -267,12 +267,7 @@ var AppointmentType;
|
|
|
267
267
|
*/
|
|
268
268
|
exports.AppointmentTypeSchema = (0, codegenv2_1.enumDesc)(exports.file_producerflow_appointment_v1_appointment, 3);
|
|
269
269
|
/**
|
|
270
|
-
* TerminationReason represents the reason for the termination of an appointment.
|
|
271
|
-
* These reasons correspond to NIPR's valid termination codes and vary by state.
|
|
272
|
-
* Use ListTerminationReasons to get the valid reasons for a specific state
|
|
273
|
-
* before terminating an appointment.
|
|
274
|
-
*
|
|
275
|
-
* Reference: https://pdb.nipr.com/Gateway/ValidTerms
|
|
270
|
+
* TerminationReason represents the reason for the termination of an appointment. These reasons correspond to NIPR's valid termination codes and vary by state. Use ListTerminationReasons to get the valid reasons for a specific state before terminating an appointment. Reference: https://pdb.nipr.com/Gateway/ValidTerms
|
|
276
271
|
*
|
|
277
272
|
* @generated from enum producerflow.appointment.v1.TerminationReason
|
|
278
273
|
*/
|
|
@@ -348,26 +343,11 @@ var TerminationReason;
|
|
|
348
343
|
*/
|
|
349
344
|
exports.TerminationReasonSchema = (0, codegenv2_1.enumDesc)(exports.file_producerflow_appointment_v1_appointment, 4);
|
|
350
345
|
/**
|
|
351
|
-
* AppointmentService manages license appointments through NIPR.
|
|
352
|
-
*
|
|
353
|
-
* The appointment flow in NIPR is as follows:
|
|
354
|
-
* 1. A new appointment (or termination) is requested for a license number.
|
|
355
|
-
* 2. Some time later, NIPR processes the request and returns the final result.
|
|
356
|
-
*
|
|
357
|
-
* Since NIPR does not return results immediately, RequestAppointment and TerminateAppointment
|
|
358
|
-
* RPCs will return a processing status of IN_PROGRESS if the request is accepted by NIPR.
|
|
359
|
-
* When the appointment is finally processed by NIPR, ProducerFlow will notify via a webhook of
|
|
360
|
-
* the final result. Also, any call from this point on to ListAppointments or GetAppointment will
|
|
361
|
-
* also return the final result.
|
|
362
|
-
*
|
|
363
|
-
* IMPORTANT: Appointments in registry states or with capacity carriers (carriers that do not have NIPR integration)
|
|
364
|
-
* are processed automatically without going through NIPR. In these cases:
|
|
365
|
-
* - RequestAppointment will immediately return APPOINTED status
|
|
366
|
-
* - TerminateAppointment will immediately return TERMINATED status
|
|
346
|
+
* AppointmentService manages license appointments through NIPR. The appointment flow in NIPR is as follows: 1. A new appointment (or termination) is requested for a license number. 2. Some time later, NIPR processes the request and returns the final result. Since NIPR does not return results immediately, RequestAppointment and TerminateAppointment RPCs will return a processing status of IN_PROGRESS if the request is accepted by NIPR. When the appointment is finally processed by NIPR, ProducerFlow will notify via a webhook of the final result. Also, any call from this point on to ListAppointments or GetAppointment will also return the final result. IMPORTANT: Appointments in registry states or with capacity carriers (carriers that do not have NIPR integration) are processed automatically without going through NIPR. In these cases: RequestAppointment will immediately return APPOINTED status. TerminateAppointment will immediately return TERMINATED status. Any call to this service must be authenticated using an API key in the request headers. The API key can be found in the ProducerFlow API key section of the ProducerFlow UI and it identifies the tenant that is making the request.
|
|
367
347
|
*
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
348
|
+
* Available endpoints:
|
|
349
|
+
* UAT (User Acceptance Testing): https://api.uat.producerflow.com
|
|
350
|
+
* Production: https://api.producerflow.com
|
|
371
351
|
*
|
|
372
352
|
* @generated from service producerflow.appointment.v1.AppointmentService
|
|
373
353
|
*/
|