@makegov/tango-node 0.1.4 → 0.3.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.
@@ -420,6 +420,152 @@ export const RECIPIENT_PROFILE_SCHEMA = {
420
420
  isList: false,
421
421
  nestedModel: "Location",
422
422
  },
423
+ cage: {
424
+ name: "cage",
425
+ type: "str",
426
+ isOptional: true,
427
+ isList: false,
428
+ nestedModel: null,
429
+ },
430
+ duns: {
431
+ name: "duns",
432
+ type: "str",
433
+ isOptional: true,
434
+ isList: false,
435
+ nestedModel: null,
436
+ },
437
+ };
438
+ export const AWARD_OFFICE_SCHEMA = {
439
+ office_code: {
440
+ name: "office_code",
441
+ type: "str",
442
+ isOptional: true,
443
+ isList: false,
444
+ nestedModel: null,
445
+ },
446
+ office_name: {
447
+ name: "office_name",
448
+ type: "str",
449
+ isOptional: true,
450
+ isList: false,
451
+ nestedModel: null,
452
+ },
453
+ agency_code: {
454
+ name: "agency_code",
455
+ type: "str",
456
+ isOptional: true,
457
+ isList: false,
458
+ nestedModel: null,
459
+ },
460
+ agency_name: {
461
+ name: "agency_name",
462
+ type: "str",
463
+ isOptional: true,
464
+ isList: false,
465
+ nestedModel: null,
466
+ },
467
+ department_code: {
468
+ name: "department_code",
469
+ type: "str",
470
+ isOptional: true,
471
+ isList: false,
472
+ nestedModel: null,
473
+ },
474
+ department_name: {
475
+ name: "department_name",
476
+ type: "str",
477
+ isOptional: true,
478
+ isList: false,
479
+ nestedModel: null,
480
+ },
481
+ };
482
+ export const IDV_PERIOD_OF_PERFORMANCE_SCHEMA = {
483
+ start_date: {
484
+ name: "start_date",
485
+ type: "date",
486
+ isOptional: true,
487
+ isList: false,
488
+ nestedModel: null,
489
+ },
490
+ last_date_to_order: {
491
+ name: "last_date_to_order",
492
+ type: "date",
493
+ isOptional: true,
494
+ isList: false,
495
+ nestedModel: null,
496
+ },
497
+ };
498
+ export const OFFICERS_SCHEMA = {
499
+ highly_compensated_officer_1_name: {
500
+ name: "highly_compensated_officer_1_name",
501
+ type: "str",
502
+ isOptional: true,
503
+ isList: false,
504
+ nestedModel: null,
505
+ },
506
+ highly_compensated_officer_1_amount: {
507
+ name: "highly_compensated_officer_1_amount",
508
+ type: "Decimal",
509
+ isOptional: true,
510
+ isList: false,
511
+ nestedModel: null,
512
+ },
513
+ highly_compensated_officer_2_name: {
514
+ name: "highly_compensated_officer_2_name",
515
+ type: "str",
516
+ isOptional: true,
517
+ isList: false,
518
+ nestedModel: null,
519
+ },
520
+ highly_compensated_officer_2_amount: {
521
+ name: "highly_compensated_officer_2_amount",
522
+ type: "Decimal",
523
+ isOptional: true,
524
+ isList: false,
525
+ nestedModel: null,
526
+ },
527
+ highly_compensated_officer_3_name: {
528
+ name: "highly_compensated_officer_3_name",
529
+ type: "str",
530
+ isOptional: true,
531
+ isList: false,
532
+ nestedModel: null,
533
+ },
534
+ highly_compensated_officer_3_amount: {
535
+ name: "highly_compensated_officer_3_amount",
536
+ type: "Decimal",
537
+ isOptional: true,
538
+ isList: false,
539
+ nestedModel: null,
540
+ },
541
+ highly_compensated_officer_4_name: {
542
+ name: "highly_compensated_officer_4_name",
543
+ type: "str",
544
+ isOptional: true,
545
+ isList: false,
546
+ nestedModel: null,
547
+ },
548
+ highly_compensated_officer_4_amount: {
549
+ name: "highly_compensated_officer_4_amount",
550
+ type: "Decimal",
551
+ isOptional: true,
552
+ isList: false,
553
+ nestedModel: null,
554
+ },
555
+ highly_compensated_officer_5_name: {
556
+ name: "highly_compensated_officer_5_name",
557
+ type: "str",
558
+ isOptional: true,
559
+ isList: false,
560
+ nestedModel: null,
561
+ },
562
+ highly_compensated_officer_5_amount: {
563
+ name: "highly_compensated_officer_5_amount",
564
+ type: "Decimal",
565
+ isOptional: true,
566
+ isList: false,
567
+ nestedModel: null,
568
+ },
423
569
  };
424
570
  export const CONTRACT_SCHEMA = {
425
571
  award_date: {
@@ -1792,6 +1938,521 @@ export const GRANT_SCHEMA = {
1792
1938
  nestedModel: "GrantAttachment",
1793
1939
  },
1794
1940
  };
1941
+ // ---------------------------------------------------------------------------
1942
+ // Vehicles (Awards)
1943
+ // ---------------------------------------------------------------------------
1944
+ export const VEHICLE_COMPETITION_DETAILS_SCHEMA = {
1945
+ commercial_item_acquisition_procedures: {
1946
+ name: "commercial_item_acquisition_procedures",
1947
+ type: "dict",
1948
+ isOptional: true,
1949
+ isList: false,
1950
+ nestedModel: null,
1951
+ },
1952
+ evaluated_preference: {
1953
+ name: "evaluated_preference",
1954
+ type: "dict",
1955
+ isOptional: true,
1956
+ isList: false,
1957
+ nestedModel: null,
1958
+ },
1959
+ extent_competed: {
1960
+ name: "extent_competed",
1961
+ type: "dict",
1962
+ isOptional: true,
1963
+ isList: false,
1964
+ nestedModel: null,
1965
+ },
1966
+ most_recent_solicitation_date: {
1967
+ name: "most_recent_solicitation_date",
1968
+ type: "date",
1969
+ isOptional: true,
1970
+ isList: false,
1971
+ nestedModel: null,
1972
+ },
1973
+ number_of_offers_received: {
1974
+ name: "number_of_offers_received",
1975
+ type: "int",
1976
+ isOptional: true,
1977
+ isList: false,
1978
+ nestedModel: null,
1979
+ },
1980
+ original_solicitation_date: {
1981
+ name: "original_solicitation_date",
1982
+ type: "date",
1983
+ isOptional: true,
1984
+ isList: false,
1985
+ nestedModel: null,
1986
+ },
1987
+ other_than_full_and_open_competition: {
1988
+ name: "other_than_full_and_open_competition",
1989
+ type: "dict",
1990
+ isOptional: true,
1991
+ isList: false,
1992
+ nestedModel: null,
1993
+ },
1994
+ set_aside: {
1995
+ name: "set_aside",
1996
+ type: "dict",
1997
+ isOptional: true,
1998
+ isList: false,
1999
+ nestedModel: null,
2000
+ },
2001
+ simplified_procedures_for_certain_commercial_items: {
2002
+ name: "simplified_procedures_for_certain_commercial_items",
2003
+ type: "dict",
2004
+ isOptional: true,
2005
+ isList: false,
2006
+ nestedModel: null,
2007
+ },
2008
+ small_business_competitiveness_demonstration_program: {
2009
+ name: "small_business_competitiveness_demonstration_program",
2010
+ type: "dict",
2011
+ isOptional: true,
2012
+ isList: false,
2013
+ nestedModel: null,
2014
+ },
2015
+ solicitation_identifier: {
2016
+ name: "solicitation_identifier",
2017
+ type: "str",
2018
+ isOptional: true,
2019
+ isList: false,
2020
+ nestedModel: null,
2021
+ },
2022
+ solicitation_procedures: {
2023
+ name: "solicitation_procedures",
2024
+ type: "dict",
2025
+ isOptional: true,
2026
+ isList: false,
2027
+ nestedModel: null,
2028
+ },
2029
+ };
2030
+ export const IDV_SCHEMA = {
2031
+ uuid: {
2032
+ name: "uuid",
2033
+ type: "str",
2034
+ isOptional: false,
2035
+ isList: false,
2036
+ nestedModel: null,
2037
+ },
2038
+ key: {
2039
+ name: "key",
2040
+ type: "str",
2041
+ isOptional: false,
2042
+ isList: false,
2043
+ nestedModel: null,
2044
+ },
2045
+ piid: {
2046
+ name: "piid",
2047
+ type: "str",
2048
+ isOptional: true,
2049
+ isList: false,
2050
+ nestedModel: null,
2051
+ },
2052
+ award_date: {
2053
+ name: "award_date",
2054
+ type: "date",
2055
+ isOptional: true,
2056
+ isList: false,
2057
+ nestedModel: null,
2058
+ },
2059
+ naics_code: {
2060
+ name: "naics_code",
2061
+ type: "int",
2062
+ isOptional: true,
2063
+ isList: false,
2064
+ nestedModel: null,
2065
+ },
2066
+ psc_code: {
2067
+ name: "psc_code",
2068
+ type: "str",
2069
+ isOptional: true,
2070
+ isList: false,
2071
+ nestedModel: null,
2072
+ },
2073
+ total_contract_value: {
2074
+ name: "total_contract_value",
2075
+ type: "Decimal",
2076
+ isOptional: true,
2077
+ isList: false,
2078
+ nestedModel: null,
2079
+ },
2080
+ base_and_exercised_options_value: {
2081
+ name: "base_and_exercised_options_value",
2082
+ type: "Decimal",
2083
+ isOptional: true,
2084
+ isList: false,
2085
+ nestedModel: null,
2086
+ },
2087
+ fiscal_year: {
2088
+ name: "fiscal_year",
2089
+ type: "int",
2090
+ isOptional: true,
2091
+ isList: false,
2092
+ nestedModel: null,
2093
+ },
2094
+ obligated: {
2095
+ name: "obligated",
2096
+ type: "Decimal",
2097
+ isOptional: true,
2098
+ isList: false,
2099
+ nestedModel: null,
2100
+ },
2101
+ idv_type: {
2102
+ name: "idv_type",
2103
+ type: "dict",
2104
+ isOptional: true,
2105
+ isList: false,
2106
+ nestedModel: null,
2107
+ },
2108
+ multiple_or_single_award_idv: {
2109
+ name: "multiple_or_single_award_idv",
2110
+ type: "dict",
2111
+ isOptional: true,
2112
+ isList: false,
2113
+ nestedModel: null,
2114
+ },
2115
+ type_of_idc: {
2116
+ name: "type_of_idc",
2117
+ type: "dict",
2118
+ isOptional: true,
2119
+ isList: false,
2120
+ nestedModel: null,
2121
+ },
2122
+ description: {
2123
+ name: "description",
2124
+ type: "str",
2125
+ isOptional: true,
2126
+ isList: false,
2127
+ nestedModel: null,
2128
+ },
2129
+ recipient: {
2130
+ name: "recipient",
2131
+ type: "dict",
2132
+ isOptional: true,
2133
+ isList: false,
2134
+ nestedModel: "RecipientProfile",
2135
+ },
2136
+ place_of_performance: {
2137
+ name: "place_of_performance",
2138
+ type: "dict",
2139
+ isOptional: true,
2140
+ isList: false,
2141
+ nestedModel: "PlaceOfPerformance",
2142
+ },
2143
+ awarding_office: {
2144
+ name: "awarding_office",
2145
+ type: "dict",
2146
+ isOptional: true,
2147
+ isList: false,
2148
+ nestedModel: "AwardOffice",
2149
+ },
2150
+ funding_office: {
2151
+ name: "funding_office",
2152
+ type: "dict",
2153
+ isOptional: true,
2154
+ isList: false,
2155
+ nestedModel: "AwardOffice",
2156
+ },
2157
+ parent_award: {
2158
+ name: "parent_award",
2159
+ type: "dict",
2160
+ isOptional: true,
2161
+ isList: false,
2162
+ nestedModel: "ParentAward",
2163
+ },
2164
+ officers: {
2165
+ name: "officers",
2166
+ type: "dict",
2167
+ isOptional: true,
2168
+ isList: false,
2169
+ nestedModel: "Officers",
2170
+ },
2171
+ legislative_mandates: {
2172
+ name: "legislative_mandates",
2173
+ type: "dict",
2174
+ isOptional: true,
2175
+ isList: false,
2176
+ nestedModel: "LegislativeMandates",
2177
+ },
2178
+ set_aside: {
2179
+ name: "set_aside",
2180
+ type: "dict",
2181
+ isOptional: true,
2182
+ isList: false,
2183
+ nestedModel: "CodeDescription",
2184
+ },
2185
+ period_of_performance: {
2186
+ name: "period_of_performance",
2187
+ type: "dict",
2188
+ isOptional: true,
2189
+ isList: false,
2190
+ nestedModel: "IDVPeriodOfPerformance",
2191
+ },
2192
+ transactions: {
2193
+ name: "transactions",
2194
+ type: "dict",
2195
+ isOptional: true,
2196
+ isList: true,
2197
+ nestedModel: "Transaction",
2198
+ },
2199
+ subawards_summary: {
2200
+ name: "subawards_summary",
2201
+ type: "dict",
2202
+ isOptional: true,
2203
+ isList: false,
2204
+ nestedModel: "SubawardsSummary",
2205
+ },
2206
+ competition: {
2207
+ name: "competition",
2208
+ type: "dict",
2209
+ isOptional: true,
2210
+ isList: false,
2211
+ nestedModel: "Competition",
2212
+ },
2213
+ awards: {
2214
+ name: "awards",
2215
+ type: "dict",
2216
+ isOptional: true,
2217
+ isList: true,
2218
+ nestedModel: "Contract",
2219
+ },
2220
+ naics: {
2221
+ name: "naics",
2222
+ type: "dict",
2223
+ isOptional: true,
2224
+ isList: false,
2225
+ nestedModel: "CodeDescription",
2226
+ },
2227
+ psc: {
2228
+ name: "psc",
2229
+ type: "dict",
2230
+ isOptional: true,
2231
+ isList: false,
2232
+ nestedModel: "CodeDescription",
2233
+ },
2234
+ // Alias expansion used in vehicle shaping: orders(...) == IDV child awards/contracts.
2235
+ orders: {
2236
+ name: "orders",
2237
+ type: "dict",
2238
+ isOptional: true,
2239
+ isList: true,
2240
+ nestedModel: "Contract",
2241
+ },
2242
+ // Vehicle membership rollups (present on `/api/vehicles/{uuid}/awardees/`).
2243
+ title: {
2244
+ name: "title",
2245
+ type: "str",
2246
+ isOptional: true,
2247
+ isList: false,
2248
+ nestedModel: null,
2249
+ },
2250
+ order_count: {
2251
+ name: "order_count",
2252
+ type: "int",
2253
+ isOptional: true,
2254
+ isList: false,
2255
+ nestedModel: null,
2256
+ },
2257
+ idv_obligations: {
2258
+ name: "idv_obligations",
2259
+ type: "Decimal",
2260
+ isOptional: true,
2261
+ isList: false,
2262
+ nestedModel: null,
2263
+ },
2264
+ idv_contracts_value: {
2265
+ name: "idv_contracts_value",
2266
+ type: "Decimal",
2267
+ isOptional: true,
2268
+ isList: false,
2269
+ nestedModel: null,
2270
+ },
2271
+ };
2272
+ export const VEHICLE_SCHEMA = {
2273
+ uuid: {
2274
+ name: "uuid",
2275
+ type: "str",
2276
+ isOptional: false,
2277
+ isList: false,
2278
+ nestedModel: null,
2279
+ },
2280
+ solicitation_identifier: {
2281
+ name: "solicitation_identifier",
2282
+ type: "str",
2283
+ isOptional: false,
2284
+ isList: false,
2285
+ nestedModel: null,
2286
+ },
2287
+ agency_id: {
2288
+ name: "agency_id",
2289
+ type: "str",
2290
+ isOptional: false,
2291
+ isList: false,
2292
+ nestedModel: null,
2293
+ },
2294
+ organization_id: {
2295
+ name: "organization_id",
2296
+ type: "str",
2297
+ isOptional: true,
2298
+ isList: false,
2299
+ nestedModel: null,
2300
+ },
2301
+ vehicle_type: {
2302
+ name: "vehicle_type",
2303
+ type: "dict",
2304
+ isOptional: true,
2305
+ isList: false,
2306
+ nestedModel: null,
2307
+ },
2308
+ who_can_use: {
2309
+ name: "who_can_use",
2310
+ type: "dict",
2311
+ isOptional: true,
2312
+ isList: false,
2313
+ nestedModel: null,
2314
+ },
2315
+ type_of_idc: {
2316
+ name: "type_of_idc",
2317
+ type: "dict",
2318
+ isOptional: true,
2319
+ isList: false,
2320
+ nestedModel: null,
2321
+ },
2322
+ contract_type: {
2323
+ name: "contract_type",
2324
+ type: "dict",
2325
+ isOptional: true,
2326
+ isList: false,
2327
+ nestedModel: null,
2328
+ },
2329
+ agency_details: {
2330
+ name: "agency_details",
2331
+ type: "dict",
2332
+ isOptional: true,
2333
+ isList: false,
2334
+ nestedModel: null,
2335
+ },
2336
+ descriptions: {
2337
+ name: "descriptions",
2338
+ type: "str",
2339
+ isOptional: true,
2340
+ isList: true,
2341
+ nestedModel: null,
2342
+ },
2343
+ fiscal_year: {
2344
+ name: "fiscal_year",
2345
+ type: "int",
2346
+ isOptional: true,
2347
+ isList: false,
2348
+ nestedModel: null,
2349
+ },
2350
+ award_date: {
2351
+ name: "award_date",
2352
+ type: "date",
2353
+ isOptional: true,
2354
+ isList: false,
2355
+ nestedModel: null,
2356
+ },
2357
+ last_date_to_order: {
2358
+ name: "last_date_to_order",
2359
+ type: "date",
2360
+ isOptional: true,
2361
+ isList: false,
2362
+ nestedModel: null,
2363
+ },
2364
+ awardee_count: {
2365
+ name: "awardee_count",
2366
+ type: "int",
2367
+ isOptional: true,
2368
+ isList: false,
2369
+ nestedModel: null,
2370
+ },
2371
+ order_count: {
2372
+ name: "order_count",
2373
+ type: "int",
2374
+ isOptional: true,
2375
+ isList: false,
2376
+ nestedModel: null,
2377
+ },
2378
+ vehicle_obligations: {
2379
+ name: "vehicle_obligations",
2380
+ type: "Decimal",
2381
+ isOptional: true,
2382
+ isList: false,
2383
+ nestedModel: null,
2384
+ },
2385
+ vehicle_contracts_value: {
2386
+ name: "vehicle_contracts_value",
2387
+ type: "Decimal",
2388
+ isOptional: true,
2389
+ isList: false,
2390
+ nestedModel: null,
2391
+ },
2392
+ solicitation_title: {
2393
+ name: "solicitation_title",
2394
+ type: "str",
2395
+ isOptional: true,
2396
+ isList: false,
2397
+ nestedModel: null,
2398
+ },
2399
+ solicitation_description: {
2400
+ name: "solicitation_description",
2401
+ type: "str",
2402
+ isOptional: true,
2403
+ isList: false,
2404
+ nestedModel: null,
2405
+ },
2406
+ solicitation_date: {
2407
+ name: "solicitation_date",
2408
+ type: "date",
2409
+ isOptional: true,
2410
+ isList: false,
2411
+ nestedModel: null,
2412
+ },
2413
+ naics_code: {
2414
+ name: "naics_code",
2415
+ type: "int",
2416
+ isOptional: true,
2417
+ isList: false,
2418
+ nestedModel: null,
2419
+ },
2420
+ psc_code: {
2421
+ name: "psc_code",
2422
+ type: "str",
2423
+ isOptional: true,
2424
+ isList: false,
2425
+ nestedModel: null,
2426
+ },
2427
+ set_aside: {
2428
+ name: "set_aside",
2429
+ type: "str",
2430
+ isOptional: true,
2431
+ isList: false,
2432
+ nestedModel: null,
2433
+ },
2434
+ awardees: {
2435
+ name: "awardees",
2436
+ type: "dict",
2437
+ isOptional: true,
2438
+ isList: true,
2439
+ nestedModel: "IDV",
2440
+ },
2441
+ opportunity: {
2442
+ name: "opportunity",
2443
+ type: "dict",
2444
+ isOptional: true,
2445
+ isList: false,
2446
+ nestedModel: "Opportunity",
2447
+ },
2448
+ competition_details: {
2449
+ name: "competition_details",
2450
+ type: "dict",
2451
+ isOptional: true,
2452
+ isList: false,
2453
+ nestedModel: "VehicleCompetitionDetails",
2454
+ },
2455
+ };
1795
2456
  export const EXPLICIT_SCHEMAS = {
1796
2457
  Office: OFFICE_SCHEMA,
1797
2458
  Location: LOCATION_SCHEMA,
@@ -1803,6 +2464,9 @@ export const EXPLICIT_SCHEMAS = {
1803
2464
  Transaction: TRANSACTION_SCHEMA,
1804
2465
  Department: DEPARTMENT_SCHEMA,
1805
2466
  Contact: CONTACT_SCHEMA,
2467
+ AwardOffice: AWARD_OFFICE_SCHEMA,
2468
+ IDVPeriodOfPerformance: IDV_PERIOD_OF_PERFORMANCE_SCHEMA,
2469
+ Officers: OFFICERS_SCHEMA,
1806
2470
  RecipientProfile: RECIPIENT_PROFILE_SCHEMA,
1807
2471
  Contract: CONTRACT_SCHEMA,
1808
2472
  Entity: ENTITY_SCHEMA,
@@ -1811,6 +2475,9 @@ export const EXPLICIT_SCHEMAS = {
1811
2475
  Notice: NOTICE_SCHEMA,
1812
2476
  Agency: AGENCY_SCHEMA,
1813
2477
  Grant: GRANT_SCHEMA,
2478
+ Vehicle: VEHICLE_SCHEMA,
2479
+ IDV: IDV_SCHEMA,
2480
+ VehicleCompetitionDetails: VEHICLE_COMPETITION_DETAILS_SCHEMA,
1814
2481
  CFDANumber: CFDA_NUMBER_SCHEMA,
1815
2482
  CodeDescription: CODE_DESCRIPTION_SCHEMA,
1816
2483
  GrantAttachment: GRANT_ATTACHMENT_SCHEMA,